无法创建 WWW:Mechanize::Firefox 的实例 [英] Can't create an instance of WWW:Mechanize::Firefox

查看:19
本文介绍了无法创建 WWW:Mechanize::Firefox 的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了 WWW:Mechanize::Firefox,但是当我尝试创建这个类"的实例时:

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

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

我得到这个错误:

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

有人可以帮忙吗?

推荐答案

你必须安装 mozrepl 并启动它菜单 Tools → MozRepl → Start.

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

这篇关于无法创建 WWW:Mechanize::Firefox 的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆