The stupid question is the question not asked | |
PerlMonks |
Re: click buttonby Corion (Patriarch) |
on Oct 31, 2015 at 20:24 UTC ( [id://1146593]=note: print w/replies, xml ) | Need Help?? |
Looking at the HTML source of the "Continue" button:
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.
In Section
Seekers of Perl Wisdom
|
|