Skip Menu |

This queue is for tickets about the Win32-IEAutomation CPAN distribution.

Report information
The Basics
Id: 29220
Status: open
Priority: 0/
Queue: Win32-IEAutomation

People
Owner: Nobody in particular
Requestors: RENEEB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.5
Fixed in: (no value)



Subject: getAllTables doesn't return an array of Table-objects
In the documentation it is said that getAllTables returns an array of Table-objects, but it doesn't. In getAllTables it is sub getAllTables{ ... my $links = $agent->Document->all->tags("table"); for (my $n = 0; $n < $links->length; $n++){ my $link_object = Win32::IEAutomation::Element->new(); ... } This should be: sub getAllTables{ ... my $links = $agent->Document->all->tags("table"); for (my $n = 0; $n < $links->length; $n++){ my $link_object = Win32::IEAutomation::Table->new(); ... }
One line is missing in the changes... $link_object->{element} = $links->item($n); has to be $link_object->{table} = $links->item($n); Cheers, Renee On Fr. 07. Sep. 2007, 09:48:32, RENEEB wrote: Show quoted text
> In the documentation it is said that getAllTables returns an array of > Table-objects, but it doesn't. > > In getAllTables it is > > sub getAllTables{ > ... > my $links = $agent->Document->all->tags("table"); > for (my $n = 0; $n < $links->length; $n++){ > my $link_object = Win32::IEAutomation::Element->new(); > ... > } > > This should be: > > sub getAllTables{ > ... > my $links = $agent->Document->all->tags("table"); > for (my $n = 0; $n < $links->length; $n++){ > my $link_object = Win32::IEAutomation::Table->new(); > ... > }