小编典典

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

jenkins

我正在尝试在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

阅读 440

收藏
2020-07-25

共1个答案

小编典典

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

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

然后重新运行。高温超导

2020-07-25