我已经安装了 ActivePerl PPM 和 Strawberry Perl(Padre)。尝试通过命令提示符安装 WWW::Selenium CPAN
perl -MCPAN -e shell
install WWW::Selenium
它抛出以下错误
Test Summary Report
-------------------
t/test_default_server.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 7 tests but ran 1.
Files=12, Tests=344, 31 wallclock secs ( 0.14 usr + 0.06 sys = 0.20 CPU)
Result: FAIL
Failed 1/12 test programs. 1/344 subtests failed.
dmake.exe: Error code 255, while making 'test_dynamic'
MATTP/Test-WWW-Selenium-1.36.tar.gz
C:\STRAWB~1\c\bin\dmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MATTP/Test-WWW-Selenium-1.36.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
MATTP/Test-WWW-Selenium-1.36.tar.gz : make_test NO
我还安装了 Selenium 独立服务器(一个 jar 文件)。但是以下代码在命令提示符下不起作用。
java -jar <path of the selenium server>
PS:我不知道 Perl。我是初学者。