Dashboard > Watir > ... > Watir Development > FireWatir
Watir Log In View a printable version of the current page.
FireWatir
Added by Bret Pettichord, last edited by Alister Scott on Sep 20, 2008  (view change) show comment
Labels: 
(None)

Background

FireWatir has a similar API to Watir, though accesses the DOM by invoking JavaScript by using the JSSh XPI to telnet into the browser. FireWatir is compatible with Firefox 1.5 and above: running on Windows, OSX and GNU\Linux.

There is an ongoing merge of FireWatir and Watir; intially through running the Watir unit tests against FireWatir and eventually merging the code-bases.

Installation

Installation is simple. See the latest installation guide for details.

Example Script and TroubleShooting

Compatibility between FireWatir and Watir

Our ultimate aim is to have full compatibility between FireWatir and Watir scripts. In the meantime there is a list of known compatibility issues.

Release Notes

FireWatir Release Notes
FireWatir Compatibility

Development Notes

You can find a list of FireWatir contributors on the Watir Contributors page.

The FireWatir Compatibility page is currently being updated by Lawrence Nuanez.

Not sure where to put this, but this is how I implement visible? in FireWatir:

class Element
  def visible?
    assert_exists
    displayed= js_eval "#{element_object}.style.display"
    visibility= js_eval "#{element_object}.style.visibility"
    @@current_level = 0
    !(displayed == "none" || visibility == "hidden")
  end
end
 

 It is very useful when testing javascript toggling of elements. I believe watir (IE) already has a visible? method

Site running on a free Atlassian Confluence Community License granted to OpenQA. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators