【问题标题】:java.lang.IllegalStateException: The driver executable does not exist: /usr/local/bin/geckodriverjava.lang.IllegalStateException:驱动程序可执行文件不存在:/usr/local/bin/geckodriver
【发布时间】:2018-02-22 21:19:15
【问题描述】:

当我尝试通过 Jenkins 执行我的自动化测试用例时出现以下错误。

Server Using: Centos 7

java.lang.IllegalStateException:驱动程序可执行文件不存在:/usr/local/bin/geckodriver

在检查服务器时,我发现路径“/usr/local/bin/”上已经存在 geckodriver 和 chromedriver,但我仍然不知道 Jenkins 为什么会抛出这些错误。

我还检查了 geckodriver 和 chromedriver 的访问权限和权限都设置为 777。geckodriver 和 chromedriver 均已正确下载/安装。

【问题讨论】:

  • 你能用你的代码试验和错误堆栈跟踪更新问题吗?

标签: selenium jenkins centos


【解决方案1】:

从您的 Jenkins 脚本中尝试运行一个简单的 shell 脚本,例如:

ls /usr/local/bin/geckodriver 

看看你得到的结果。

【讨论】:

  • 我已经这样做了,但它仍然返回相同的错误。我相信Jenkins的安装有问题
  • 你是如何安装 Jenkins 的?
  • @Cœur 对此感到抱歉
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-03-27
  • 1970-01-01
  • 2023-03-05
  • 2017-03-26
  • 2018-08-29
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多