However, this does work. Thanx :) Could someone more knowledgeable than I fix the wiki that I mentioned below, so the example actually works? For the benefit of future generations to come.
2009/3/19 ANu Gangavaram <[email protected]>: > You might also want to add something like : > Watir::Waiter.wait_until{$browser.div(:class, 'home_top').exists?} > > Hope this works for you. > > On Thu, Mar 19, 2009 at 2:19 PM, ANu Gangavaram <[email protected]> wrote: >> >> You would first want to add the below statement in your script: >> >> require 'Watir' >> Also, your error mentions safariwatir - Are you working on IE or Safari... >> you might want to check that as well. >> On Thu, Mar 19, 2009 at 2:12 PM, Mark Lehky <[email protected]> wrote: >>> >>> Hi all. >>> >>> 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? >>> >>> > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
