java.lang.IllegalStateException:驱动程序不可执行:/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs

时间:2016-11-11 21:31:02

标签: java linux selenium jenkins phantomjs

我正试图在Jenkins(Unix)中以无头模式运行selenium UI测试。我正在为unix环境使用正确版本的phantomJS。

phantomjs-2.1.1-linux-x86_64/bin/phantomjs

我得到了上面提到的错误。任何见解?如果需要,我会提供更多细节。

java.lang.IllegalStateException: The driver is not executable: /resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs

1 个答案:

答案 0 :(得分:5)

实际文件需要可执行才能运行。更改文件权限以使其可执行,如:

chmod 755 /resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs

然后重新运行。 HTH