1. require *is* case-sensitive. if you do "require 'Watir'" it will *work*, but you will also get warnings (eventually).
2. remove the include statement. that is causing your safariwatir problem. 3. i have updated the wiki page. let me know if still see any problems with it. bret Mark Lehky wrote: > Yes this does work! > Is it possible that in the example (see wiki link below) "include > Watir" should actually be "include Waiter"? > > 2009/3/19 ANu Gangavaram <[email protected]>: > >> No, its not case-sensitive, but try the second suggestion >> Watir::Waiter.wait_until instead of wait_until: >> >> Watir::Waiter.wait_until{$browser.div(:class, 'home_top').exists?} >> >> On Thu, Mar 19, 2009 at 2:44 PM, Mark Lehky <[email protected]> wrote: >> >>> I have absolutely no idea how Safari got into all this? I am running >>> this against IE. But even after your suggestion, I get the same error. >>> Just out of curiosity is Ruby case-sensitive in the require statement: >>> require "watir" >>> require "Watir" >>> >>> Thanx. >>> >>> 2009/3/19 ANu Gangavaram <[email protected]>: >>> >>>> 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? >>>>> >> > > > > -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord Watir Training: Austin March 25-26, Portland/Beaverton April 16-17 www.watircraft.com/training --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
