WWW::Mechanize is not a browser like Firefox, Chrome, etc. There is no graphical U/I for you to fiddle with. However, Mechanize is impersonating a browser (like Firefox, Chrome, etc) and collecting all of the HTML stuff that would be displayed in the browser. You can write Perl code that is filling out and submitting a form, clicking on a link, etc. But there is no actual mouse movements or clicks involved. Note that this means that
https://www.700credit.com/ thinks that it is indeed talking to a browser. As an aside, there are ways to have Mechanize impersonate different browsers and sometimes this is useful because some websites dynamically change the pages that they serve up according to the type and version of browser they are talking to. That is an advanced topic, but be aware that this is possible.
As long as the website is serving up plain HTML, everything is fine and it is possible to write Perl code to interact with the site. However some sites send JavaScript to the browser for it to execute. Mechanize cannot execute JS code. The answer to that is to use Mechanize to control an actual browser and have the browser execute the JS code. This requires that the browser have a special interface so that Mechanize can control it. At the moment, I think this is only available on Chrome. Firefox took it out for security reasons.
At the moment, I and probably we don't understand what your overall objective is? Maybe you could explain more?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.