[wtr-general] Re: How to capture Dynamic text using Ruby

2009-11-08 Thread SMF SMF
check this... (for Captcha)

http://groups.google.com/group/recaptcha/browse_thread/thread/499622081b0d8b90




On Mon, Nov 9, 2009 at 12:51 PM, shradha_Dalvi  wrote:

>
> Hi All,
> We all are acquainted with the opening a new account on
> gmail,yahoo,rediff etc.I had aquery,After filling all the information
> for crating mail account,at end ,we have provided a image which
> contains Alpha-numeric characters in Zic-zac way.
>
> Could anybody tell me how to capture it and fill it into given text
> field?
>
>
>
> Regards,
> Shraddha.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Working on Chrome watir

2009-11-08 Thread sai

Jarib, Aidy,
I have started working on Watir API for webdriver for Chrome. It may
take a few more weeks to see something substantial. But its a start :)

Regards.
Sai

On Nov 8, 9:22 am, Jari Bakken  wrote:
> On Sat, Nov 7, 2009 at 12:14 PM, aidy lewis  wrote:
>
> > Sai, Jarib,
>
> > Would it not be an idea to put Chrome and Firewatir on top of
> > WebDriver, to avoid duplication of browser access methods with all
> > that entails?
>
> > Aidy
>
> Indeed - as soon as we have an implementation of Watir's API on top of
> WebDriver's ruby bindings, you'll be able to drive any browser
> supported by WebDriver through that. Currently the ruby bindings
> support the Firefox, IE, Chrome and remote drivers. Building the new
> Watir impl will take some time though.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] How to capture Dynamic text using Ruby

2009-11-08 Thread shradha_Dalvi

Hi All,
 We all are acquainted with the opening a new account on
gmail,yahoo,rediff etc.I had aquery,After filling all the information
for crating mail account,at end ,we have provided a image which
contains Alpha-numeric characters in Zic-zac way.

Could anybody tell me how to capture it and fill it into given text
field?



Regards,
Shraddha.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Can Watir fetch the system time?

2009-11-08 Thread Raveendran P
Hi Zhong,

Ruby can but i am not sure about Watir.

The Ruby code to get system time in Ubuntu machine:

systime.rb

mytime=`date`
puts time=mytime.split(' ')[3]

output:
10:48:31



For windows --> Please refer http://bit.ly/iub2C

Thanks



On Mon, Nov 9, 2009 at 10:04 AM, yuping zhong wrote:

>
> Dear All,
>
> I want to know if Watir can get the system time.
> If true,how to do that?
>
> Thanks!
>
> -Zhong
> >
>


-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Can Watir fetch the system time?

2009-11-08 Thread Pallavi Sharma
Watir is designed in Ruby, and Ruby being a powerful language supports all
such functionalities:

Link: http://www.tutorialspoint.com/ruby/ruby_date_time.htm

hope this helps.

--

Pallavi.

On Mon, Nov 9, 2009 at 10:04 AM, yuping zhong wrote:

>
> Dear All,
>
> I want to know if Watir can get the system time.
> If true,how to do that?
>
> Thanks!
>
> -Zhong
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Can Watir fetch the system time?

2009-11-08 Thread yuping zhong

Dear All,

I want to know if Watir can get the system time.
If true,how to do that?

Thanks!

-Zhong
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Working on Chrome watir

2009-11-08 Thread Shamiq

For those with the CreateProcess() error, be sure to add the Chrome
directory to your environment PATH variable then quit all instances of
the command prompt. A quick test to see if this worked as intended is
to type "chrome" in the prompt and see if it launches Chrome.

-Shamiq

On Nov 6, 6:03 am, Mark Mckim  wrote:
> Hi Željko,
>
> (i already replied to this but i'm not sure if it submitted
> correctly).
>
> I too am seeing the "The system cannot find the file specified.:
> CreateProcee() failed:
> (Processerror)"  error message. I am running chromewatir 1.5.1 and the
> latest version of watir etc. I have tried removing and reinstalling
> chromewatir and it has not solved the issue. Do you have any ideas how
> i can resolve this problem?
>
> Thanks for your help.
>
> Mark
>
> On Nov 5, 8:43 am, shradha_Dalvi  wrote:
>
>
>
> > Hi Sai,
> >            I have tried with the IRB.script executes till opening the
> > browser and after that it shows following on command prompt.
>
> > ""
>
> > Does it related to TCP socket connection?
>
> > Regards,
> > Shraddha.
>
> > On Nov 5, 9:55 am, sai  wrote:
>
> > > Hi Shrada,
> > > Can you please try this in IRB to see if you are getting any specific
> > > error? Also is the script running fine till you get the id attribute?
>
> > > Regards,
> > > Sai
>
> > > On Nov 4, 7:11 pm, shradha_Dalvi  wrote:
>
> > > > for printing purpose.We are using Scite editor to run ruby scripts.
>
> > > > On Nov 4, 4:02 pm, SMF SMF  wrote:
>
> > > > > Hi,
>
> > > > > p browser.text_field(:name,"q").set "Shraddha"
>
> > > > > why is the letter "p" in your script?
>
> > > > > On Wed, Nov 4, 2009 at 3:21 PM, shradha_Dalvi  
> > > > > wrote:
>
> > > > > > Hi,
>
> > > > > > after installing chromewatir 1.5.1,it is working fine. But another
> > > > > > problem raises. For the following test script:-
>
> > > > > > require "chrome_watir"
> > > > > > include ChromeWatir::Exceptions
> > > > > > include ChromeWatir
> > > > > > browser = ChromeWatir::Browser.new
> > > > > > browser.goto 'http://www.gmail.com'
>
> > > > > > sleep 10
> > > > > > p browser.text_field(:name,"q").set "Shraddha"
>
> > > > > > It is not recognizing the text_field object.I have tried with 
> > > > > > another
> > > > > > object but reulted into same.
>
> > > > > > Kindly help.
>
> > > > > > Regards,
> > > > > > Shraddha.
>
> > > > > > On Nov 4, 2:29 pm, Željko Filipin 
> > > > > > wrote:
> > > > > >  > On Wed, Nov 4, 2009 at 5:07 AM, shradha_Dalvi 
> > > > > > 
> > > > > > wrote:
> > > > > > > > "The system cannot find the file specified.: CreateProcee() 
> > > > > > > > failed:
> > > > > > > > (Processerror)"
>
> > > > > > > Uninstall chrome_watir 1.5.0, install chromewatir 1.5.1 and let 
> > > > > > > us know
> > > > > > if
> > > > > > > you still get the error.
>
> > > > > > > gem install chromewatir
>
> > > > > > > Željko
> > > > > > > --
> > > > > > > watir.com - community manager
> > > > > > > watirpodcast.com - host

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Error when running test - undefined method...

2009-11-08 Thread Alan Malta

Hi folks,

I'm running a flex application test, but I get the follow error when
execute "cucumber features":
-
(...)
Scenario: Increment index # features/
counter.feature
undefined method 'flex_app' for #
 ./features/support/env.rb:21:in 'Before'
(...)
-

A piece of my env.rb file is:
-
require "rubygems"
require 'funfx'
require 'watir'
(...)
Before do
  @browser = Watir::Browser.new
  @flex_app = @browser.flex_app("CucumberExample",
"CucumberExample")
end


The environment is Win XP SP3 and IE 7. Anybody have any idea?

Best regards =D


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Problem getting attribute of a span

2009-11-08 Thread Ethan
ie.spans.each do |span|
  if span.className=="SSSBUTTON_CONFIRMLINK"
puts span.text
  end
end

something like that?
use the cheat sheet: http://wiki.openqa.org/display/WTR/Cheat+Sheet


On Sat, Nov 7, 2009 at 05:49, BookGuy  wrote:

>
> I'm trying to test against the class name of a span. I'm iterating
> through all spans and basically want to say, "If ie.spans[x]'s value
> for
> class = "SSSBUTTON_CONFIRMLINK" then return the inner text of the
> span"
>
> print ie.spans[x] returns the following
>
> type:
> id:
> name:
> value:
> disabled: false
> class:SSSBUTTON_CONFIRMLINK
> text: Start a New Search
>
> Anyone know how to accomplish this? I haven't been able to figure out
> the command to return the class name of a span. I know ie.spans
> [x].text
> will return the inner text but I don't know the code for any of the
> other attributes. i tried using :class also to no avail.
>
> Thanks for any help,
> Mike
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Problem getting attribute of a span

2009-11-08 Thread karim rayani
Hello,

If nothing works out then please use the hpricot library, excellent library
for screen scrapping.

Karim Rayani


On Sat, Nov 7, 2009 at 2:49 AM, BookGuy  wrote:

>
> I'm trying to test against the class name of a span. I'm iterating
> through all spans and basically want to say, "If ie.spans[x]'s value
> for
> class = "SSSBUTTON_CONFIRMLINK" then return the inner text of the
> span"
>
> print ie.spans[x] returns the following
>
> type:
> id:
> name:
> value:
> disabled: false
> class:SSSBUTTON_CONFIRMLINK
> text: Start a New Search
>
> Anyone know how to accomplish this? I haven't been able to figure out
> the command to return the class name of a span. I know ie.spans
> [x].text
> will return the inner text but I don't know the code for any of the
> other attributes. i tried using :class also to no avail.
>
> Thanks for any help,
> Mike
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---