【问题标题】:java.lang.IllegalStateException: The driver is not executable: /resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjsjava.lang.IllegalStateException:驱动程序不可执行:/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs
【发布时间】:2017-03-26 04:30:14
【问题描述】:

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

【问题讨论】:

    标签: java linux selenium jenkins phantomjs


    【解决方案1】:

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

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

    然后重新运行。高温

    【讨论】:

    • 是的,使文件可执行后问题就消失了。谢谢!
    猜你喜欢
    • 2015-11-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-22
    • 1970-01-01
    • 1970-01-01
    • 2013-05-23
    • 1970-01-01
    相关资源
    最近更新 更多