[Wtr-general] Cannot identify a table "cell" by "class" in FireWatir

jim_matt jim_matt at swbell.net
Sat Jun 2 18:26:48 EDT 2007


I know this is mainly for Watir, but I thought some of you might be interested in what I found with FireWatir.

One of my goals at the place I am currently working is to have a set of scripts that I can run on IE, Firefox, and Safari.  I already have a number of scripts working for Watir.  I finally was able to get FireWatir working on my system (for those interested, you might want to check out the Google FireWater Group discussion at http://groups.google.com/group/firewatir ).

I modified the first script by changing references from Watir to FireWatir.  I had anticipated doing this so I changed the

$br = Watir::IE.new

to

$br = FireWatir::Firefox.new

and ran the script.  After correcting a couple editing errors, the script ran all the way through.  I was very happy since the script did a number of operations that were common to other scripts.

I decided to try this with a second script.  I made the edits and ran the script.  This time the script failed because it could not locate a table cell that was identified by class.   

$br.cell(:class, "x")

This works fine in Watir.  I went back and looked at the cell and the class is the only thing that uniqely identifies it.  I 'll have to figure something else to do.

Jim Matthews
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070602/58148b33/attachment.html 


More information about the Wtr-general mailing list