Hi,

I am using firewatir 1.6.5 on Ubuntu.  I have subclassed the
FireWatir::Firefox class to add some extra functionality.  Now,
whenever I try to find a select_list based on the name of the element
I get an exception:

irb(main):074:0> b.select_list(:name, 'txt.lang.selection').exists?
NoMethodError: undefined method `element_name' for #<Browser:
0x7f22569fbd28>
        from /usr/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/
element.rb:276:in `locate_tagged_element'
        from /usr/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/
elements/input_element.rb:20:in `locate'
        from /usr/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/
element.rb:964:in `exists?'
        from (irb):74


However, if I run this same code on an instance of the Firefox class
it runs fine, even though a list of all the methods of the firefox
class does list 'element_name' as a method.  Does anybody else had
this problem?  Or know how I might go about solving this?

Thanks,

Josh

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to