When using Firewatir I try to get the element_name from an instance an element an I always get retuned an empty string. This seems to be the cause for firewatir-1.8.0, on both windows and Linux.
I really need to get at the jssh var name for the given firewatir element. Simple Ruby Example: Watir::Browser.default = "firefox" b = Watir::Browser.new() b.goto("file://c:/test-css.html") div = b.div(:id, "6") print "Div: #{div.element_name}\n" btn = b.button(:id, "button_666") print "Button: #{btn.element_name}\n" b.close() Simple HTML target: <html> <style type="text/css"> .tbutton { color: #FF0000; background-color: #000000; font-weight: bold; } </style> <title>test css</title> <body> <input class="tbutton" type="button" id="button_666" value="button-666"> <div id="6"> <input class="tbutton" type="button" id="button_66q" value="button-666"> </div> </body> </html> -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com