From: Justin Collins Date: 2009-06-04T19:48:14+09:00 Subject: Re: READYSTATE_COMPLETE = 4 Jerry Lane wrote: > when I try this I get the following: > > test_00009_Bug4986_error_on_dialog_close(DocumentTestScripts): > NameError: uninitialized constant > DocumentTestScripts::READYSTATE_COMPLETE > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:105:in > `const_missing' > test_Bug4986.rb:42:in `test_00009_Bug4986_error_on_dialog_close' > > > It is actually a type of Watir test I am trying to run which checks if > the page displays done (as in fully loaded) in the bar on the bottom of > the window but I cant get it to work :( > You might want to ask on the Watir mailing list, then: http://groups.google.com/group/watir-general?pli=1 But the previous code is not going to work - you need to get the readyState from the Watir::IE object and compare that to READYSTATE_COMPLETE (which is 4): http://wtr.rubyforge.org/rdoc/ -Justin