chrome 浏览器在被最大化时会出现如下错误信息,但不影响CASE运行:
[5.969][SEVERE]: Timed out receiving message from renderer: 0.681
处理方法,老外给出了比较好的解决方式:
We were seeing something similar with Chrome and the issue came down to the way we were maximizing the browser before
running the tests.
We switched from this:
Driver.Manage().Window.Maximize();
To this (for Chrome only):
if (typeof(TWebDriver) == typeof(ChromeDriver)){ var options = new ChromeOptions(); options.AddArgument("start-maximized"); driver = new ChromeDriver(driverPath, options);}