Hello,
Sorry, if this is obvious - I'm new to ruby, watir, and windows - I'm
coming from perl on unix.
What have I missed here? I ran the example concurrent_search test and
got the following:
C:\watir_bonus\examples>ruby concurrent_search.rb
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1939:in `assert_exists': Unable
to locate object, using name and q
(Watir::Exception::UnknownObjectException) from
concurrent_search.rb:18:in `join' from concurrent_search.rb:18
from concurrent_search.rb:18:in `each'
from concurrent_search.rb:18
C:\watir_bonus\examples>more concurrent_search.rb
# demonstrate ability to run multiple tests concurrently
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}
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general