M
mirthcyy
hi guys,
I have a table in html and I'm using watir rudy to read values from
that table and put into an array. Right now I'm doing like that:
frame.tableid, "SomeTable").rows.each_with_index{|r, i|
totalcells=r.cells.length
j=1
while j<=totalcells do
$arrayResult.push(r.cellindex,j).text)
j=j+1
end
}
But it's really slow. Is there any better way to do the cell loop and
is there any better way to save the cell values to an array instead of
push? Thanks a lot.
I have a table in html and I'm using watir rudy to read values from
that table and put into an array. Right now I'm doing like that:
frame.tableid, "SomeTable").rows.each_with_index{|r, i|
totalcells=r.cells.length
j=1
while j<=totalcells do
$arrayResult.push(r.cellindex,j).text)
j=j+1
end
}
But it's really slow. Is there any better way to do the cell loop and
is there any better way to save the cell values to an array instead of
push? Thanks a lot.