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

Ajitesh Srinetra ajitesh.srinetra at gmail.com
Thu Jan 4 10:13:43 EST 2007


      Hi all ,
      The html code looks like this


           <td style='background-color:#33FFCC; color:#CC0033'>
             <a href="#"
onClick="populateLinks('subscriber_info',event, 'Recharge Info,Caller
Subscriber Info', '2,4', '1,0','+919812005762'); return
highlightRow('2');" onMouseout="delayhidemenu()">+919812005762</a>
           </td>


           <td style='background-color:#33FFCC; color:#CC0033'>
             <a href="#"
onClick="populateLinks('subscriber_info',event, 'Recharge View,Called
Subscriber Info', '1,3', '1,0','+918021000001'); return
highlightRow('2');" onMouseout="delayhidemenu()">+918021000001</a>

           </td>


           <td style='background-color:#33FFCC; color:#CC0033'>
             &nbsp;
           </td>


           <td style='background-color:#33FFCC; color:#CC0033'>
             Outgoing
           </td>


           <td style='background-color:#33FFCC; color:#CC0033'>
             PhoneNumber
           </td>

Here I have to assert on the color:#CC0033' not on the background color.
           <td style='background-color:#33FFCC; color:#CC0033'>
             PhoneNumber
           </td>

In this line PhoneNumber is one of the column of the row and the whole
row is having color ahving color code '#CC0033'

All other rows are having different color.

I tried @ie.table(:id,
'IDNAME')[2].html.match("background-color:#33FFCC; color:#CC0033")
but  it's not working
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070104/78c4e48f/attachment.html 


More information about the Wtr-general mailing list