# Watir too slow

**URL:** <https://www.ruby-forum.com/t/watir-too-slow/130823>\
**Category:** Ruby\
**Created:** [March 3, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/watir-too-slow/130823 "2008-03-03T18:00:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mirth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a88e57/32.png) [@mirth](https://www.ruby-forum.com/u/mirth)\
**Post date:** [March 3, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/watir-too-slow/130823/1 "2008-03-03T18:00:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mirth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a88e57/32.png) [@mirth](https://www.ruby-forum.com/u/mirth)\
**Post date:** [March 4, 2008, 12:08am UTC](https://www.ruby-forum.com/t/watir-too-slow/130823/2 "2008-03-04T00:08:46Z")

</div>

On Mar 3, 9:56 am, mirth [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 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
