[
http://jira.openqa.org/browse/WTR-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zeljko closed WTR-226.
----------------------
Resolution: Won't Fix
If this is still a problem, please report it here:
https://github.com/watir/watir-classic/issues
> WIN32OLERuntimeError with table.each() if there are embedded tables
> -------------------------------------------------------------------
>
> Key: WTR-226
> URL: http://jira.openqa.org/browse/WTR-226
> Project: Watir
> Issue Type: Bug
> Components: HTML Controls
> Affects Versions: 1.5.6
> Environment: Watir 1.5.6 ( I also see it on 1.5.2), WinXP
> Reporter: Hugh
> Fix For: Soon
>
>
> If there's a table embedded in table, you get a WIN32OLERuntime error when
> iterating over the outer table with each(). If you iterate on the inner table
> it works properly. I've included some sample html and an IRB session snippet
> Outer Table
> irb(main):010:0> ie.tables[1].each { |t| puts t.class}
> Watir::TableRow
> Watir::TableRow
> WIN32OLERuntimeError: unknown property or method `2'
> HRESULT error code:0x80020006
> Unknown name.
> from
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/table.rb:154:in
> `[]'
> from
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/table.rb:154:in
> `_row'
> from
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/table.rb:91:in `
> each'
> from
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/table.rb:90:in `
> upto'
> from
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/table.rb:90:in `
> each'
> from (irb):10
> Inner Table
> irb(main):011:0> ie.tables[2].each { |t| puts t.class}
> Watir::TableRow
> => 1
> <html><title>Embedded Table Test</title><body>
> <table border>
> <tr><td>Outer table</td></tr>
> <tr><td><table border><tr><td>Inner Table</td></tr></table></td></tr>
> </table>
> </body></html>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development