I think I can help you with the second question .. a colleague faced and fixed this issue :)
The problem with using getAllTables is that it creates a new object for Win32::IEAutomation::Element ... whereas it should be creating an object for Win32::IEAutomation::Table as Table.pm has the subroutine for rows.
To fix this.. all you need to do is make a small modification to the IEAutomation.pm file ... Open the file and search for the following subroutine :
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; }
In the lines :
my $link_object = Win32::IEAutomation::Element->new(); $link_object->{element} = $links->item($n);
change 'element' to 'table' It should look like this :
my $link_object = Win32::IEAutomation::Table->new(); $link_object->{table} = $links->item($n);
NOTE: Please pay attention to the case.
save this.. run ur script .. it should work like a charm .. if it doesn't ... send me a msg and i'll mail you the IEAutomation.pm file which is working.
Sparkz

In reply to Re^2: A couple of questions about Win32::IEAutomation by sparkylu
in thread A couple of questions about Win32::IEAutomation by bobdole

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.