2016-11-11 69 views
2

我想在Jenkins(Unix)的无头模式下运行selenium UI测试。我为unix环境使用了phantomJS的正确版本。java.lang.IllegalStateException:驱动程序不可执行:/resources/phantomjs-2.1.1-linux-x86_64/bin/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 

回答

4

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

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

然后重新运行。 HTH

+0

是的,该问题消失后,使文件executable.Thanks! – Chuchoo

相关问题