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 <anuwri...@gmail.com>: > 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 <mark.le...@aclaro.com> 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 watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---