I am using chromedriver for selenium automation.But webpage loading is very slow compared to manual testing.Kindly help
Getting error:
[1596549682.992][SEVERE]: Timed out receiving message from renderer: 300.000
Code trials:
ChromeOptions option=new ChromeOptions();
option.setPageLoadStrategy(PageLoadStrategy.NORMAL);
option.addArguments("--disable-features=NetworkService");
option.addArguments("--dns-prefetch-disable");
option.addArguments("--disable-extensions");
option.setProxy(null);
driver = new ChromeDriver(option);
Chrome version:84 Chrome driver Version:84 Selenium version:Tried 3.141.59 and 3.5.2
Selenium by default implements
pageLoadStrategyas NORMAL. So explicitly setting the same won't make any difference.However, to avoid waiting for the slowly loading webpage you can set the capability
java.lang.String PAGE_LOAD_STRATEGYasnoneas follows:References
You can find a couple of relevant detailed discussions in:
Timed out receiving message from renderer
To address this error you need to update ChromeDriver and google-chrome versions accordingly following the discussion in Timed out receiving message from renderer: 0.100 log messages using ChromeDriver and Chrome v80 through Selenium Java