【发布时间】:2018-07-21 02:17:22
【问题描述】:
我不知道实际发生了什么。突然我的测试步骤没有通过。
public void gotoRolePage() {
driver.navigate().to("url");
}
public void gotoRolePage() {
driver.get("url");
}
Starting ChromeDriver 2.34.522940 (1a76f96f66e3ca7b8e57d503b4dd3bccfba87af1) on
port 10252
Only local connections are allowed.
Feb 11, 2018 12:54:41 PM org.openqa.selenium.remote.ProtocolHandshake createSess
ion
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the rem
ote end
Feb 11, 2018 12:54:45 PM org.openqa.selenium.remote.ProtocolHandshake createSess
ion
INFO: Detected dialect: OSS
[426.532][SEVERE]: Timed out receiving message from renderer: 299.935
[426.533][SEVERE]: Timed out receiving message from renderer: -0.001
[426.536][SEVERE]: Timed out receiving message from renderer: -0.004
这两个功能我都试过了。不走运......它在最后一天工作得很好。
这是带有黄瓜的 maven 项目
ChromeDriver 2.34.522940 和 Chrome 版本 64.0.3282.140(官方构建)(64 位)
【问题讨论】:
-
调用该方法时发生了什么?
-
该步骤堆栈有一段时间比显示失败..但该函数成功导航到 url。 :/真的很困惑.....我已经在其他电脑上运行了我的测试,它工作得很好
-
请用完整的错误堆栈跟踪更新问题。
-
更新浏览器并使用最新的chromedriver.exe
-
据我所知,Chrome 64 是迄今为止最新的版本。顺便说一句,我已经通过使用 chrome 版本 63 解决了这个问题。
标签: java google-chrome selenium automation webdriver