I have a script which can successfully reach some pages on a site but
when I use the same methods to reach pages that take a longer time to
fetch (say 9 seconds) the page will appear in the browser but Watir
execution stops because I get this error...

c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/ie.rb:498:in
'wait': undefined method 'document' for 31:Fixnum (NoMethodError)
from c:/ruby/lib/ruby/gems/1.38/gems/watir-1.5.6/./watir/ie.rb:496:in
'times'
from c:/ruby/lib/ruby/gems/1.38/gems/watir-1.5.6/./watir/ie.rb:496:in
'wait'
from c:/ruby/lib/ruby/gems/1.38/gems/watir-1.5.6/./watir/element.rb:
220:in 'click'

The error occurs regardless of the method used to call that page -- it
doesn't matter if I call the URL directly with:
ie.goto("https://app.fastshoppingcart.com/welcome.hg?
inWizardMode=false")
or call it off a link in the preceding web page:
ie.link(:href, "https://app.fastshoppingcart.com/welcome.hg?
inWizardMode=false").click
same error.

I get this error for any page that takes a little longer to get,
namely, because these pages are being created on the fly by the server
and have some drop-down lists populated with 500 items. They come up
maybe 9 seconds after you call them.

I thought Watir on a goto or link had a built-in wait feature that
would delay until the page did come up? Is this a special case where I
need to add other code to create an additional wait?

I'm using Ruby 1.8.6 patch 111 and Waitr 1.5.6.

Jonathan in Atlanta

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to