当前位置: 首页 > 知识库问答 >
问题:

步骤失败:SeleniumError:无法创建新服务:ChromeDriverService生成信息:版本:“3.141.59”

郎鸿朗
2023-03-14
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

>

  • 首先将在后台启动google chrome无头:

    google-chrome--无头--无沙箱--无缓存--禁用GPU--禁用Dev-SHM-用法&

    然后启动ChromeDriver:

    ChromeDriver--Proxy-Server=10.0.x.x:yyyy--headless--disable-GPU--nogui--no-sandbox--enable-logging--ignore-certifice-errors--start-maximized--disable-dev-shm-usage-no-cache

    启动集线器:Java-jar selenium-server-standalone-3.141.59.jar-role hub

    注册节点并使用以下命令进行配置:

    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,

    然后运行该命令以使用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
    

    我哪里错了,请建议…

  • 共有1个答案

    翟永春
    2023-03-14

    因为在错误消息中说“driver.version:unknown”,所以我希望他们将与Chromedriver.exe路径或版本的可比性一起发布。

     类似资料: