Dashboard > Watir > ... > Watir Development > Firewatir Compatibility
Watir Log In View a printable version of the current page.
Firewatir Compatibility
Added by Bret Pettichord, last edited by Zeljko on Feb 08, 2008  (view change)
Labels: 
(None)

Compatability issues with Watir and FireWatir

From: John Fitisoff <jfitis...@yahoo.com>
Date: Mon, 29 Oct 2007 10:49:46 -0700 (PDT)
Local: Mon, Oct 29 2007 12:49 pm
Subject: Re: [wtr-general] Re: How to avoid forking firewatir v watir scripts?

Here are some things I discovered while trying to port
a set of tests over to Firewatir (not sure if I can
remember everything right now but will hopefully get
most of it). It seems to be working fine for me now:

-contains_text will take a string but really wants a
regex. "foo" wasn't working for me but /foo/ was.

-Other methods seem to work better with a Regex.

-contains_text returns characters you'd normally not
see with WATIR (If the string is more than 1 word just
try a Regex for one of the words if that's possible.)

-The attach method works a little differently can't be
called from the parent class (you can't do
Firefox.attach).

-I had problems with the set method when trying to set
text fields on a search page. There was a div that
would dynamically pop up on the right side of the page
as soon as text entry started and only the first
character got entered. I just called the method twice
twice to get past that..

-You can't require WATIR and Firewatir in the same
file.

None of these things were deal breakers. I figured out
workarounds for all of them. It was pretty darn cool
to watch a test running in Firefox.

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