开发者

Can't create an instance of WWW:Mechanize::Firefox

开发者 https://www.devze.com 2023-04-04 16:16 出处:网络
I\'ve just installed WWW:Mechanize::Firefox, but when I tried to create an instance of this \"class\":

I've just installed WWW:Mechanize::Firefox, but when I tried to create an instance of this "class":

    my $mech = WWW::Mechanize::Firefox->new();

I get this error:

Failed to connect to , problem connecting to "localhost", port 4242: 
No connection could be made because the target machine 
actively refused it. 
at C:/strawberry/perl/site/lib/MozRepl/Client.pm line 144

Can anyone h开发者_运维知识库elp please?


You must install mozrepl and start it in the menu Tools → MozRepl → Start.


In addition to installing and starting firefox/mozrepl, an actively refused connection is frequently the work of a FIREWALL, so you need to learn to work your local firewall to allow mozrepl to listen for connections from localhost

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号