Bret,
My script is going to the google URL, but for some reason it cannot
find the text box. I have tried all the examples but I get the
following output:
broswer.url
browser.text
script1.rb:9: undefined method `enter_text' for #<Watir::IE:0x8b291e0>
(NoMethodError)
same for when I use ie.text_field(:name, "q").set("pickaxe")
Do you have any idea why it cannot find that text box?
On Nov 10, 1:09 pm, Bret Pettichord <[email protected]> wrote:
> My guess is that the browser is not actually on the google page at this
> point. You could use statements like this to help troubleshoot:
>
> puts browser.text
> puts browser.url
> puts browser.title
>
> Bret
>
>
>
>
>
> tester86 wrote:
> > Thanks for all the help I managed to get ruby and watir all up and
> > running. But I have a question, when I was using cucumber I get this
> > error message and they told me to put this post in the watir group:
>
> > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
> > `assert_exists': Unable to locate element, using :name,
> > "q" (Watir::Exception::UnknownObje
> > ctException)
> > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> > element.rb:284:in `enabled?'
> > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> > element.rb:56:in `assert_enabled'
> > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> > input_elements.rb:323:in `set'
> > from script1.rb:8
>
> > When you have a watir script why cannot find the text box and the
> > search box for google.My script is still the same. Is there some other
> > syntax that I need to use?
>
> --
> Bret Pettichord
> Lead Developer, Watir,www.watir.com
> Blog,www.io.com/~wazmo/blog
> Twitter,www.twitter.com/bpettichord- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---