Watir too slow

M

mirth

hi guys,

I'm using watir to get the result from a html table into an array like

$reportResult=frame.table:)id, "ReportTable").to_a.flatten

But it takes forever to run if that table's huge. For example, if that
table has 533,863 cells so it will be 533,863 objects in that
$reportResult array. It will take over 20 minutes to run that line of
code. Sometimes, it will just give up and give exception.

So my question is: Is there any better way to get result from the html
table that could run faster? Any suggestion is high appreciated!

Thanks,
YY
 
P

Paul Rogers

hi guys,

I'm using watir to get the result from a html table into an array like

 $reportResult=frame.table:)id, "ReportTable").to_a.flatten

But it takes forever to run if that table's huge. For example, if that
table has 533,863 cells so it will be 533,863 objects in that
$reportResult array. It will take over 20 minutes to run that line of
code. Sometimes, it will just give up and give exception.

So my question is: Is there any better way to get result from the html
table that could run faster? Any suggestion is high appreciated!

Thanks,
YY

you could try hpricot - either by using net/http or by dumping the hml
from IE to it

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top