OK, I was wrong, the behavior is intermittent. Sometimes it works and
sometimes it doesn't  :-(  Any suggestions about how to track this down?

On Thu, 4 Aug 2005 14:35:36 -0400
Warren Pollans <[EMAIL PROTECTED]> wrote:

> Hmmm, I get the error if there's no browser window open at the start.
> If a browser window is already open, it runs without error.  Is this
> the expected behavior?
> 
> 
> 
> On Thu, 04 Aug 2005 12:03:00 -0600
> Paul Rogers <[EMAIL PROTECTED]> wrote:
> 
> > Well, it works for me ;-)
> > 
> > The error is that watir couldn't find the text field where you enter
> > the search term. 
> > I live in canada, and I always get redirected to google.ca, so maybe
> > something similar is happening for you and the search box has a
> > different name...
> > Other than that I cant really help...
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Warren
> > Pollans Sent: 04 August 2005 11:39
> > To: [email protected]
> > Subject: [Wtr-general] example/concurrent_search error
> > 
> > 
> > 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
> > 
> > _______________________________________________
> > Wtr-general mailing list
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/wtr-general
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to