Selenium Timed out receiving message from renderer Selenium Timed out receiving message from renderer google-chrome google-chrome

Selenium Timed out receiving message from renderer


Check for JS Runtime

First verify you aren't executing / eval()ing a lot of javascript. That can cause a timeout.

Check Version Compatibility

First, verify your versions of:

  • Selenium
  • JDK
  • ChromeDriver
  • Chrome

    are all compatible. Good luck doing this because there is no single place that documents it, AND selenium software isn't smart enough to do a quick check (it should)

Check Driver Initialization

Add this cryptic block of code, what I like to call the "Ever Growing List of Useless Arguments" chromedriver requires

up to date from every issue ever reported on stack overflow as of: September 2018

// ChromeDriver is just AWFUL because every version or two it breaks unless you pass cryptic arguments//AGRESSIVE: options.setPageLoadStrategy(PageLoadStrategy.NONE); // https://www.skptricks.com/2018/08/timed-out-receiving-message-from-renderer-selenium.htmloptions.addArguments("start-maximized"); // https://stackoverflow.com/a/26283818/1689770options.addArguments("enable-automation"); // https://stackoverflow.com/a/43840128/1689770options.addArguments("--headless"); // only if you are ACTUALLY running headlessoptions.addArguments("--no-sandbox"); //https://stackoverflow.com/a/50725918/1689770options.addArguments("--disable-infobars"); //https://stackoverflow.com/a/43840128/1689770options.addArguments("--disable-dev-shm-usage"); //https://stackoverflow.com/a/50725918/1689770options.addArguments("--disable-browser-side-navigation"); //https://stackoverflow.com/a/49123152/1689770options.addArguments("--disable-gpu"); //https://stackoverflow.com/questions/51959986/how-to-solve-selenium-chromedriver-timed-out-receiving-message-from-renderer-excdriver = new ChromeDriver(options);

Sources:


I had this issue today, with Chrome: Version 73.0.3683.86 (Official Build) (64-bit). For me it was failing on the timeouts on Jenkins builds, and was fine locally, see the following Chrome options that helped me to overcome that issue (ChromeDriver at this time: version - 73.0.3683.68):

ChromeOptions options = new ChromeOptions();options.addArguments("enable-automation");options.addArguments("--headless");options.addArguments("--window-size=1920,1080");options.addArguments("--no-sandbox");options.addArguments("--disable-extensions");options.addArguments("--dns-prefetch-disable");options.addArguments("--disable-gpu");options.setPageLoadStrategy(PageLoadStrategy.NORMAL);


It looks like there was an issue with the newest Chrome release. Without the disable-gpu Chromeoption set, the renderer will occasionally timeout. The workaround until Google fixes this (if they do fix it at all) is to add the --disable-gpu attribute to the ChromeOptions.

EDIT: This reduced the frequency of occurrences, but it is still happening.