Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

How to click "onclick" link by IEAutomation?

by seven_shen (Acolyte)
on May 27, 2011 at 05:39 UTC ( [id://906924]=perlquestion: print w/replies, xml ) Need Help??

seven_shen has asked for the wisdom of the Perl Monks concerning the following question:

I use Win32::IEAutomation to get some informations from html on line, now i meet a problem that seems it is impossible to click the "onclick" link to redirect the page

Here is the HTML tag(redirect by click) that i need to handle

 <li class="nextpage"><a href="#" onclick="return changepage('2')">next page </a></li>

the "changepage: page is a javascript function to redirect the page

The IEAutomation only provides following options for getlink:

Valid options to use for $how:

'linktext:' - Find the link by matching the link text i.e. the text that is displayed to the user

'id:' - Find the link by matching id attribute

'name:' - Find the link by matching name attribute

'linkurl:' - Find the link by matching url attribute of the link

'class:' - Find the link by matching class attribute

seems none of them is applicable for this case, how to handle this then?

Replies are listed 'Best First'.
Re: How to click "onclick" link by IEAutomation?
by Anonymous Monk on May 27, 2011 at 06:10 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-26 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found