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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |