I use something like the below.  Find the row you're looking for and then 
click on the column and element within that column.  You might be able to 
get away with less, but this works pretty well.

b.tr(:text => /the row I'm looking for/).td(:index => 5).img.click

On Friday, June 7, 2013 4:36:21 PM UTC-4, Super Kevy wrote:
>
> I have a table on a page with 7 columns of data that I need to match 
> against in order to click a button associated with row. 
> My current method is to do compares of the row data but it seems to 
> take forever to evaluate the 7 column match. 
> Any suggestions on how I can speed up validating a table row contains 
> the values I'm looking for? 
>
>
>

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to