in reply to Re: A couple of questions about Win32::IEAutomation
in thread A couple of questions about Win32::IEAutomation
In the lines :sub getAllTables{ my $self = shift; my $agent = $self->{agent}; my @links_array; my $links = $agent->Document->all->tags("table"); for (my $n = 0; $n < $links->length; $n++){ my $link_object = Win32::IEAutomation::Element->new(); $link_object->{element} = $links->item($n); $link_object->{parent} = $self; push (@links_array, $link_object); } return @links_array; }
change 'element' to 'table' It should look like this :my $link_object = Win32::IEAutomation::Element->new(); $link_object->{element} = $links->item($n);
NOTE: Please pay attention to the case.my $link_object = Win32::IEAutomation::Table->new(); $link_object->{table} = $links->item($n);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A couple of questions about Win32::IEAutomation
by bobdole (Beadle) on Oct 19, 2007 at 18:41 UTC |