2016-11-11 70 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

相關問題