Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Win32::IEAutomation click link help

by Anonymous Monk
on Dec 23, 2011 at 17:28 UTC ( [id://944943]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Win32::IEAutomation click link help
in thread Win32::IEAutomation click link help

found solution by editing the the win32::IEAutomaiton module. addeded the below.

sub getLink2{ my ($self, $how, $what) = @_; my $agent = $self->{agent}; #my $links = $agent->Document->links; my $links = $agent->Document->all->tags("a"); my $target_link = __getObject($links, $how, $what) if ($links); my $link_object; if ($target_link){ $link_object = Win32::IEAutomation::Element->new(); $link_object->{element} = $target_link; $link_object->{parent} = $self; }else{ $link_object = undef; print "WARNING: No link is present in the document with your +specified option $how $what\n" if $warn; } return $link_object; }

Replies are listed 'Best First'.
Re^4: Win32::IEAutomation click link help
by Anonymous Monk on Jul 28, 2012 at 18:43 UTC
    thank you very much for posting your solution. I would have been stuck without this.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://944943]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-19 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found