Reputation: 33
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
Upvotes: 2
Views: 12960
Reputation: 193088
Selenium by default implements pageLoadStrategy
as 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_STRATEGY
as none
as follows:
ChromeOptions option=new ChromeOptions();
option.setPageLoadStrategy(PageLoadStrategy.NONE);
driver = new ChromeDriver(option);
You can find a couple of relevant detailed discussions in:
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
Upvotes: 2