Hi all:
I got kind interesting problem with tables in side table.
I have a page like this.
<html>--<head>--<body>
|___<TABLE> <---index 1
|__<TBody>
|__<TR>
|__<TR>
|__<TR>
| |__<TD>
| |__<TABLE> <-- index 2
| |__<TBODY>
| |__<TR>
| |__<TD>
| |__<TD>
| |__<TD>
|__<TR>
|__<TD>
This tree diagrame is read from IE Developer Toolbar.
When my script print currentFrame.tables[1].row_count . It give me 5 rows
I have a loop go through every row to find content and return the row that I want.
However, when the loop go to 4th row, where the error occure.
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2461:in `[]': Unknown property or method
`4' (WIN32OLERuntimeError)
HRESULT error code:0x80020006
Unknown name. from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2461:in `ro
w'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2411:in `[]'
from ./test/frameless_watir.rb:21:in `checkBoxForTheRowInTable'
from ./test/frameless_watir.rb:20:in `upto'
from ./test/frameless_watir.rb:20:in `checkBoxForTheRowInTable'
from ./test/frameless_watir.rb:17:in `upto'
from ./test/frameless_watir.rb:17:in `checkBoxForTheRowInTable'
from ./test/frameless_watir.rb:34:in `checkBoxForTheRowInTable'
from ./test/frameless_watir.rb:31:in `upto'
from ./test/frameless_watir.rb:31:in `checkBoxForTheRowInTable'
from test.rb:23
I guess it's looking at index 2 table and somehow OLE object get confused?
How can I handle this kind situation.
Please help me!
Thanks
Regards,
Jonathan Ni
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
