Hello Monks! I'm trying to automate the process of opening up Firefox, navigating to a webpage, logging in, and editing a wiki. I've managed to have the process work perfectly on one computer, but can’t seem to get it to work on two others.

#!C:\Perl64\bin -w use strict; use diagnostics; use WWW::Mechanize::Firefox; use WWW::Mechanize; use MozRepl::RemoteObject; use LWP::UserAgent; my $email = ‘[user]’; my $password = ‘[password]’; ###Open Firefox and navigate to medusa### my $mech = WWW::Mechanize::Firefox->new(launch => 'C:\Program Files (x +86)\Mozilla Firefox\firefox.exe', activate => 1, autoclose => 0); $mech->autodie(0); $mech->allow( javascript => 1); $mech->get(‘[URL]’); my $genmech = WWW::Mechanize->new(); ###Enter email and password### $mech->submit_form( with_fields => { email => $email, password => $password, } );

This gets me the error

 “Failed to connect to , Can’t locate object method “__load_plugins” via package “MozRepl” at C:/Perl/site/lib/MozRepl.pm line 308”

I tried uninstalling and reinstalling MozRepl, but the test fails, giving me this:

“Failed during this command: ZIGOROU/MozRepl-0.06.tar.gz : make_test NO”

Any ideas what the problem could be?


In reply to Can't locate object method "__Load_plugins" via MozRepl by Jeradian

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.