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 |