Hi All, Here's a solution to find the visible elements in Firefox. Override the Elements class in MozillaBaseElement.rb file to include the below code -
require 'firewatir' class Element def visible? jssh_command = "var val = 'true'; var str = ''; var obj = #{element_object}; while (obj != null) { try { str = #{DOCUMENT_VAR}.defaultView.getComputedStyle(obj,null).display; if (str=='none') { val = 'false'; break; } } catch(err) {} obj = obj.parentNode; } val;" jssh_socket.send("#{jssh_command}\n", 0) vals = read_socket() vals end public:visible? end The above uses the same logic as the wiki page that Ċ½eljko had mentioned for overriding watir's visible method. Hence the visible method should work the same way in both ie and firefox. Hope this is helpful .... -Tony --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---