I am still very much at the start of using Watir. Just found the
wait_until{} here
<http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdealwithtimingissuesandnotusesleep%3F>
which would be very useful for me. Replicating the supplied code
snippet (added the missing dot) it fails!
First error:
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in
`const_get': no such file to load -- safariwatir (MissingSourceFile)
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in
`local_constants'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in
`each'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:70:in
`local_constants'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in
`each'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:68:in
`local_constants'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:86:in
`local_constant_names'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:498:in
`new_constants_in'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:495:in
`collect'
... 6 levels...
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:82
from Test_Login-Logout_Thrash.rb:22
My Test_Login-Logout_Thrash.rb:22 is:
$ie = Watir::IE.start(location)
I can fix this by removing the
include Watir
from the code snippet, but then I get:
Test_Login-Logout_Thrash.rb:44: undefined method `wait_until' for
main:Object (NoMethodError)
from Test_Login-Logout_Thrash.rb:24:in `each'
from Test_Login-Logout_Thrash.rb:24
Any ideas what other secrets I am missing?