This should help clarify the confusion: http://wiki.openqa.org/display/WTR/include+Watir
Charley Baker blog: http://charleybakersblog.blogspot.com/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Tue, Jan 27, 2009 at 10:37 AM, Paul <[email protected]> wrote: > > Hi there! Long time no type. I've been using Watir for some time now > and only just recently upgraded to version 1.6.2. > > I noticed an error today that I haven't seen before. It's annoying. > Here are the details: > > (0) System: WinXP Pro SP2 with IE 6 installed. > - open IE and go to: http://sympatico.msn.ca/ > - (I just want to connect to the IE window from the IRB session) > > (1) From a command prompt in Windows, type irb > (2) within irb, type the following: > ----- > irb(main):001:0> require 'watir' > => true > irb(main):002:0> include Watir > => Object > irb(main):003:0> ie = IE.attach( :title, /MSN/ ) > NameError: uninitialized constant ActiveSupport::Duration > from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ > active_support/dependencies.rb:276:in `load_missing_constant' > from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ > active_support/dependencies.rb:468:in `const_missing' > from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ > active_support/core_ext/time/calculations.rb:246:in > `minus_without_coercion' > from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ > active_support/core_ext/time/calculations.rb:258:in `-' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie- > class.rb:506:in `wait' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie- > class.rb:154:in `_attach_init' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie- > class.rb:146:in `attach' > from (irb):3 > irb(main):004:0> > ----- > > --> I never used to get this error. > > If I run the following commands, it still fails: > ----- > require 'watir' > include Watir > ie = Watir::IE.attach :title, /MSN/ > => (get errors above) > ----- > > If I run the following commands, it works: > ----- > require 'watir' > ie = Watir::IE.attach :title, /MSN/ > ----- > > Thoughts? These ActiveSupport errors never happened with Watir 1.4.1 > or 1.5.x. > > Please let me know if this is a bug with 1.6.2. or some intentional > logic change in how Watir methods are called. > > > Thanks. Paul. > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
