java.lang.IllegalStateException:驱动程序不可执行:/resources/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

查看:180
本文介绍了java.lang.IllegalStateException:驱动程序不可执行:/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to run selenium UI test in headless mode in Jenkins(Unix). I am using the correct version of phantomJS for unix environment.

phantomjs-2.1.1-linux-x86_64/bin/phantomjs

我收到上述错误.有见识吗?如果需要,我将提供更多详细信息.

I get the above mentioned error. Any insight? I will provide more details if needed.

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

推荐答案

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

the actual file needs to be executable in order to run. change file permissions to make it executable like:

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

,然后重新运行. HTH

and then re-run. HTH

这篇关于java.lang.IllegalStateException:驱动程序不可执行:/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆