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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---