That's fantastic. Thanks for that. Now that it's working, can someone point me to some further reading as to why it works? What does the "/ ie" imply? If it's simply a namespace thing, I can understand that. What documentation did I miss that I didn't figure this without having to bother you good folks?
--Jim Evans Numara Software, Inc. On Aug 10, 7:50 pm, Bret Pettichord <bpettich...@gmail.com> wrote: > Add this line to your script: > > require 'watir/ie' > > Bret > > On Aug 10, 1:03 pm, Jim Evans <jim.ev...@numarasoftware.com> wrote: > > > > > As I mentioned in a previous message, I'm trying to model my > > application to enforce code reuse in my scripts. I think I've managed > > to find a way around the answer for my previous question, but I'm > > having a difficult time subclassing the Watir::Table class. > > > If I try the following: > > > require "watir" > > class TicketListGridControl < Watir::Table > > ... > > end > > > then I get the following error stack when I attempt to run a script: > > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/ > > dependencies.rb:440:in `load_missing_constant': uninitialized constant > > Watir::Table (NameError) > > from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ > > active_support/dependencies.rb:80:in `const_missing' > > from ./object_model.rb:67 > > 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/activesupport-2.3.3/lib/ > > active_support/dependencies.rb:156:in `require' > > from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ > > active_support/dependencies.rb:521:in `new_constants_in' > > from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ > > active_support/dependencies.rb:156:in `require' > > from program.rb:2 > > > It looks clear that my code can't resolve the name for the Table > > class. How do I correct the NameError? > > > I'm sure this is probably another "lack of Ruby experience" issues on > > my part, but I'd really appreciate a nudge in the right direction. > > > --Jim Evans > > Numara Software, Inc.- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---