This example needs the following line to be added to it.

  require 'watir/ie'

Any volunteers?

Bret

marekj wrote:
> it looks like a bug. I am able to run this test on 1.5.3 release but 
> on 1.6.2 it only opens 1 IE window for me and test throws exception 
> uninitialized constant Watir::IE (NameError)
>
>
> marekj | Semantic Page Objects Automation
>
> Watir Framework
> http://www.bitbucket.org/marekj/watirloo/
>
>
>
>
>
> On Fri, Nov 28, 2008 at 1:30 PM, Gigi <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
>     Hello,
>
>     I am new using Watir. I am trying to implement a Concurrent Search
>     test but every time I run the example below I am getting the error:
>
>     >ruby google.rb
>     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 :value, "Google
>     Search" (Watir::Exception::UnknownObjectException)
>            from google.rb:18:in `join'
>            from google.rb:18
>            from google.rb:18:in `each'
>            from google.rb:18
>     >Exit code: 1
>
>
>     Does anyone know why I am getting this error? How can I fixed?
>
>     Thank you very much!
>     Regards,
>     Gigi.
>
>
>
>     # ================================ Example
>     ==============================
>
>     require 'thread'
>     require 'watir'
>
>     def test_google
>      ie = Watir::IE.start('http://www.google.com')
>      ie.text_field(:name, "q").set("pickaxe")
>      ie.button(:value, "Google Search").click
>      ie.close
>     end
>
>     # run the same test three times concurrently in separate browsers
>     threads = []
>     3.times do
>      threads << Thread.new {test_google}
>     end
>     threads.each {|x| x.join}
>
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to