in reply to Problem with Win32 IE Mechanize
links() does what it is documented to do ;) as a general rule, links are <a> elements.
sub _extract_links { my $self = shift; my $doc = $self->{agent}->Document; my @links; for ( my $i = 0; $i < $doc->all->length; $i++ ) { my $obj = $doc->all( $i ); next unless $obj->tagName =~ /^(?:IFRAME|FRAME|AREA|A)$/i; next if lc $obj->tagName eq 'a' && !$obj->href; push @links, __new_link( $doc->all( $i ) ); } $self->{links} = \@links; return wantarray ? @{ $self->{links} } : $self->{links}; }
See Re: Win32::IE:: Mechanize click_button; no form and what it references.
See Re: Setting Terminal Server User Profile Settings and what it references.
See also site:perlmonks.org Win32 Mechanize
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with Win32 IE Mechanize
by Timboh56 (Initiate) on Jun 15, 2011 at 18:08 UTC |