Ah, I missed the part where you're trying to match data in multiple columns.

On Tuesday, June 11, 2013 9:32:03 AM UTC-4, Super Kevy wrote:
>
> The clicking is no problem.  Its matching the 7 columns of data to 
> make sure I've got the correct row. 
> The matching is what is taking so long. 
>
> Currently I push a table row into an array and match with  .include? 
> which beats a bunch of if A=B comparisons. 
> Would it be faster to push the table into an 2-d array  using the 
> table method   .to_a  ? 
>
>
>
> On Jun 10, 8:36 am, Dan <[email protected]> wrote: 
> > 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.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to