【发布时间】:2011-11-17 02:08:38
【问题描述】:
我刚刚安装了WWW:Mechanize::Firefox,但是当我尝试创建这个“类”的实例时:
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
有人可以帮忙吗?
【问题讨论】:
-
你能发布一些代码吗?另外,如果你 telnet 进入 localhost:4242 会发生什么
-
代码太简单了,因为bug在开头:使用WWW:Mechanize::Firefox; $mech = WWW::Mechanize::Firefox->new();打印“blabla”;但它当然不会因为它在之前退出:s
-
对不起,我不熟悉 telnet 和基本网络!!
-
你在 Firefox 中安装了 Mozrepl 插件吗?
-
谢谢你是对的,我没有 MozRepl,现在它可以工作了 :)
标签: perl automated-tests www-mechanize