我正在使用两台计算机来测试 Perl 代码。在一台电脑上运行完美,但在另一台电脑上启动代码时出现以下错误:
Selenium server did not return proper status at (eval 239) line 61
简化代码,错误发生在这个简单的脚本中:
#!usr/bin/env perl
use common::sense;
use WWW::Mechanize::PhantomJS;
my $phantom = WWW::Mechanize::PhantomJS->new();
__END__
最佳答案
我们遇到了 phantomjs 默认为 SSLv3 的问题。当我们修补我们的服务器时,集成测试开始失败。解决方法是传递 --ssl-protocol=any
告诉 phantomjs 使用服务器喜欢的任何内容。
关于启动 PhantomJS 时出现 Perl 错误 "selenium server did not return proper status",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26383262/