I forgot to ask you to post your html.
If you have html that looks like this
<table>
<tr>
<td bgcolor=red>
text
</td>
</tr>
</table>
you can get the html of cell with this (watir 1.5.1.1081)
irb(main):005:0> ie.table(:index, 1)[1][1].html
=> "\r\n<TD bgColor=red>text </TD>"
If you want to see if there is text "red" (without quotes) this will do it
irb(main):012:0> ie.table(:index, 1)[1][1].html.match("red")
=> #<MatchData:0x2e01170>
Just to make shure, it would return nil for any other colour
irb(main):014:0> ie.table(:index, 1)[1][1].html.match("black")
=> nil
I could be more precise if you posted a html snippet.
--
Zeljko Filipin
zeljkofilipin.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general