Get rid of "Timed out receiving message from renderer"

Get rid of "Timed out receiving message from renderer" Message

Well, if you using selenium web driver to automate your web flows you must be really annoyed by now with the console log
    [SEVERE]: Timed out receiving message from renderer: 0.100
This not only gives us a false impression of some error happening during the run but also makes it difficult to go over the console logs.
Luckily, we can make use of the silent output mode in chrome to get rid of these messages. To do so we need to set the silentOutput parameter to true in System property as follows.
    System.setProperty("webdriver.chrome.silentOutput", "true");
    and voila...no more annoying timeout message.
     
    If you don't want to use setting the system property way for any reason, there is another way for you to achieve this. You can make use of ChromeDriverService builder to build it with "withSilent" set to true in the code as below.  

    ChromeDriverService.Builder builder = new ChromeDriverService.Builder().withSilent(true);
    ChromeDriverService driverService = builder.build();
    driver = new ChromeDriver(driverService, chromeOptions);

    Enjoy...!!!

    Comments

    Popular posts from this blog

    Setup Selenium Grid using Kubernetes

    Launching Selenium Grid and Registering a Web Node