我安装了ActivePerl PPM和Strawberry Perl(Padre)。尝试通过
从命令提示符安装WWW :: Selenium CPANperl -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>
P.S:我不知道Perl。我是初学者。