Webdriver 最大化Chrome浏览器报:Timed out receiving message from renderer处理办法

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);}



你可能感兴趣的:(web,UI自动化测试)