Good advice.
Maybe I can strut up some samples and get some time measurements.
Then later post it for review.


On Jun 11, 9:47 am, Oscar Rieken <[email protected]> wrote:
> collect each row as a hash colum as the key, then compare that hash to the
> expected data hash, personally without more info of why you want to do this
> i cant tell you an easier way
>
>
>
>
>
>
>
> On Tue, Jun 11, 2013 at 10:42 AM, Dan <[email protected]> wrote:
> > 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 readhttp://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, visithttps://groups.google.com/groups/opt_out.

-- 
-- 
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