【问题标题】:PhantomJS and Selenium: WebDriver unexpectedly exited. Status code was: 127PhantomJS 和 Selenium:WebDriver 意外退出。状态码是:127
【发布时间】:2018-03-01 07:24:54
【问题描述】:

有了 selenium 和 python 我已经有了

WebDriverException: Message: Service /usr/local/bin/phantomjs unexpectedly exited. Status code was: 127

我已经在脚本中调用了executeble_path,路径是正确的:

whereis phantomjs
phantomjs: /usr/local/bin/phantomjs

这里Trouble connecting to phantomJs webdriver using python and selenium 说要安装 libfontconfig,但我已经有了:

libfontconfig1 is already the newest version (2.11.94-0ubuntu2)

我该如何解决这个问题?

【问题讨论】:

标签: python selenium phantomjs


【解决方案1】:

您可能想下载 chromedriver 的二进制文件并使用它。使用时请务必使用绝对路径。

【讨论】:

    猜你喜欢
    • 2017-02-27
    • 2022-08-23
    • 2018-08-25
    • 2019-05-31
    • 2020-09-18
    • 2016-08-11
    • 2013-08-17
    • 2019-02-02
    相关资源
    最近更新 更多