[Wtr-general] assertion on the color of the row of a table

Angrez Singh angrez at gmail.com
Wed Jan 3 04:26:43 EST 2007


Hi Ajitesh,

If you have HTML like this:


> <table>
> <tr>
> <td bgcolor=red>
> text
> </td>
> </tr>
> </table>


Then you can directly use the method attribute_value to get the value for
bgcolor like this:
ie.table(:index, 1)[1][1].attribute_value("bgcolor")

Regards,
Angrez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070103/5320e029/attachment.html 


More information about the Wtr-general mailing list