Sunday, May 31, 2020

How to stop chrome timeout receiving message from renderer

Some time we got this message in our editor when we execute our script from our IDE.

Even if it does not create any problem to execute our script but if we are interested to resolve this we need to follow the following steps.

Step 1 :

Create a ChromeDriverService with silent mode.

ChromeDriverService services = new ChromeDriverService.Builder().withSilent(true).build();

Step 2 :

Create a WebDriver instance and pass the ChromeDriverService as a parameter in constructor.

WebDriver driver = new ChromeDriver(services);