我的 Chrome 浏览器已更新到版本 78,当我尝试执行任何自动化代码时,它会显示错误
My Chrome browser is updated to version 78 and when I tried to execute any code of automation, it shows the error
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[1573451703.668][WARNING]: Timed out connecting to Chrome, retrying...
Nov 11, 2019 11:25:05 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
[1573451709.039][WARNING]: Timed out connecting to Chrome, retrying...
我该如何解决?
这个错误信息...
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[1573451703.668][WARNING]: Timed out connecting to Chrome, retrying...
Nov 11, 2019 11:25:05 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
[1573451709.039][WARNING]: Timed out connecting to Chrome, retrying...
...暗示 ChromeDriver 无法启动/生成新的 WebBrowser 即 Chrome 浏览器 会话.
...implies that the ChromeDriver was unable to initiate/spawn a new WebBrowser i.e. Chrome Browser session.
第一条日志消息:
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
是使用 ChromeDriver 本质上是信息丰富的.
is part of the startup log when using ChromeDriver and is informative in nature.
您可以在 中找到详细讨论如何保护 chromedriver 使用的端口?
<小时>
以下日志消息:
The following log message:
[1573451703.668][WARNING]: Timed out connecting to Chrome, retrying...
表示您使用的二进制文件版本之间存在一些不兼容.
indicates there are some incompatibility between the version of the binaries you are using.
确保:
@Test
.tearDown(){}
方法中调用 driver.quit()
来关闭 &优雅地销毁 WebDriver 和 Web Client 实例.@Test
as non-root user.driver.quit()
within tearDown(){}
method to close & destroy the WebDriver and Web Client instances gracefully.这篇关于如何修复 [1573451709.039][警告]:连接到 Chrome 时超时,正在重试...同时使用 chrome 版本 78 和 chrome 驱动程序版本 78.0.3904.70的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!