gpt4 book ai didi

java - Selenium Webdriver 问题无法打开 google chrome

转载 作者:行者123 更新时间:2023-11-30 05:28:24 26 4
gpt4 key购买 nike

Chrome 驱动程序 77Chrome 版本 77

Starting ChromeDriver 77.0.3865.40 (f484704e052e0b556f8030b65b953dce96503217-refs/branch-heads/3865@{#442}) on port 38929
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: session not created
from disconnected: unable to send message to renderer
(Session info: chrome=77.0.3865.90)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:48'
System info: host: 'DESKTOP-JCFLT7B', ip: '192.168.1.113', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '10.0.2'
Driver info: driver.version: ChromeDriver
remote stacktrace: Backtrace:

最佳答案

  1. 驱动程序和 Chrome 的版本应匹配。

  2. 在 Chrome 中,禁用自动更新。否则,启动后 Chrome 将会更新并且可能与 Java 驱动程序不兼容。

关于java - Selenium Webdriver 问题无法打开 google chrome,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58046060/

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