Thanks Corion.
I followed your advice and I again tried to do what I wanted with WWW :: Mechanize :: Firefox.
Indeed, it is possible to do many things with this module.
For example, I have automatically completed the username and password fields on a form to be authenticated on a site.
It's true that it works pretty well.
However, I encounter the same problem when using the MozRepl module, whith the following error message :
"command timed-out at C:/Perl/site/lib/MozRepl/Client.pm line 186"
First, il means that WWW::Mechanize::Firefox uses MozRepl.
Then, I have to precise that this message isn't displayed every time I run the script.
But, with some pages, it is displayed automatically.
Moreover, in this case, a dialog box displays a message saying that the script https://path_to_script.js seems not to response and asks if you want to stop it.
To resolve this problem, is there a way to change the value of this timeout ?
Or, is it possible to avoid running this script, before the page is loaded ?
Another problem, for pages with a lot of javascript, loading time is sometimes long. How can we improve this?
cf006


In reply to Re^4: Problem using MozRepl and MozRepl::RemoteObject by cf006
in thread Problem using MozRepl and MozRepl::RemoteObject by cf006

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.