History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WTR-104
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Krishna Sunkari
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Watir

show_tables fails when no td or tr tags in a table

Created: 21/Sep/06 10:31 AM   Updated: 23/Mar/07 03:13 AM
Component/s: Show commands
Affects Version/s: 1.4.1
Fix Version/s: Future

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Text File patchWTR-104.patch (287 kb)
2. Zip Archive WTR-104.zip (176 kb)

Environment: Windows XP Sp2


 Description  « Hide
I get the following error, if I've an empty table(with
no <td> or <tr> tags in it). In this case my table #2
is empty.
I'm using watir 1.4.1. Did someone notice the same
problem? Thanks.

irb(main):069:0> ie.show_tables
Found 19 tables
1 id= rows=1 columns=1
WIN32OLERuntimeError: Unknown property or method `0'
    HRESULT error code:0x80020006
      Unknown name.
        from
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1622:in `[]'
        from
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1622:in
`show_tables'
        from
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1621:in `each'
        from
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1621:in
`show_tables'
        from (irb):69
        from &#9829;:0

 All   Comments   Work Log   Change History      Sort Order:
Bret Pettichord - 23/Sep/06 12:40 AM
should be fixed

Radu Stoian - 23/Mar/07 03:13 AM
Radus: 2007.03.23

Please see the patch attached to be applied