我正试图在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
答案 0 :(得分:5)
实际文件需要可执行才能运行。更改文件权限以使其可执行,如:
chmod 755 /resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs
然后重新运行。 HTH