in reply to click button
Looking at the HTML source of the "Continue" button:
<input type="image" src="images/continue-blue.gif" width="73" height=" +17" alt="Continue" border="0" onclick="check_fields();">
That button uses Javascript. WWW::Mechanize does not support Javascript.
There are different approaches for you to proceed:
You could look at the Javascript source code of that site and figure out what the Javascript does, and replicate that with Perl.
You could use (for example) Firefox HTTP Live Headers to find out the HTTP requests that the browser makes in response to the button being clicked, and replicate them with Perl.
You could automate a web browser that understands Javascript, like WWW::Mechanize::Firefox, WWW::Mechanize::PhantomJS and maybe others.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: click button
by davidstoll (Initiate) on Nov 08, 2015 at 15:24 UTC | |
by Corion (Patriarch) on Nov 08, 2015 at 21:21 UTC |