gpt4 book ai didi

java - 步骤失败 : SeleniumError: Unable to create new service: ChromeDriverService Build info: version: '3.141.59'

转载 作者:行者123 更新时间:2023-12-01 19:07:08 24 4
gpt4 key购买 nike

chromedriver-version: 79.0.3945.36 
google-chrome version:79.0.3945.88
java version:openjdk version "1.8.0_232"
selenium-standalone-server version:3.141.59
  1. 首先将在后台启动 google chrome headless:

    google-chrome --headless --no-sandbox --no-cache --disable-gpu --disable-dev-shm-usage &

  2. 然后我启动 chromedriver:

    chromedriver --proxy-server=10.0.x.x:yyyy --headless --disable-gpu --nogui --no-sandbox --enable-logging --ignore-certificate-errors --start-maximized --禁用-dev-shm-usage --no-cache

  3. 启动中心:java -jar selenium-server-standalone-3.141.59.jar -role hub

  4. 使用以下命令注册节点并配置它:

    java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver,browserName=chrome,version="79.0.3945.88",headless=true,chrome_binary=/usr/bin/google-chrome -jar/usr/local/bin/selenium-server-standalone-3.141.59.jar -角色节点-hub http://IP:4444/grid/register,browserName=chrome,version= "79.0.3945.88",headless=true,chrome_binary=/usr/bin/google-chrome,webdriver.chrome.driver=/usr/local/bin/chromedriver

  5. 然后,我使用 127.0.0.1 作为主机、4444 作为端口运行命令来执行我的案例

下面是错误消息。

Step Failed: SeleniumError: Unable to create new service: ChromeDriverService Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53' System info: host: 'localhost.localdomain', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-957.27.2.el7.x86_64', java.version: '1.8.0_232' Driver info: driver.version: unknown

我哪里出错了,请建议..

最佳答案

正如错误消息中所说的“driver.version:未知”,所以我预计它们会出现 chromedriver.exe 路径或版本可比性问题。

关于java - 步骤失败 : SeleniumError: Unable to create new service: ChromeDriverService Build info: version: '3.141.59' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59529785/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com