1

I recently updated my chrome from v74 to v80. Now I am facing timeout messaging rending when I run my script which was running successfully on v74.

My code :

public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.chrome.driver","/home/sharukh/Downloads/chromedriver1/chromedriver");
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
//driver.manage().timeouts().implicitlyWait(5,TimeUnit.SECONDS) ;
driver.get("https://www.mariatash.com/");

Help me out on this issue.

  • did you update your chrome ? – PDHide Feb 26 at 14:16
  • yes, updated chrome from v74 to v80 – S Sufiyaan Feb 26 at 14:21
  • 1
    Did you update the chromedriver? You should have ChromeDriver 80.0.3987.106. – Mate Mrše Feb 26 at 14:21
  • yes. but still getting runtime – S Sufiyaan Feb 26 at 14:24
  • the script is running but getting runtime error. – S Sufiyaan Feb 26 at 14:29
1

https://stackoverflow.com/questions/60114639/timed-out-receiving-message-from-renderer-0-100-log-messages-using-chromedriver

This is a known-issue, it's not actually a failure but a retry attempt to listen to chrome. The severity tag confuses the user, and there is a fix on the way. You could also down grade to version 79 and it works with chrome 80.

enter image description here

If you want to surpress this message temporarily for now then,

    System.setProperty("webdriver.chrome.silentOutput", "true"); //THIS will surpress all logs expect INFO


    java.util.logging.Logger.getLogger("org.openqa.selenium").setLevel(Level.OFF); // this could be used to stop INFO logging in chrome driver 

enter image description here

| improve this answer | |
  • Can I downgrade the chrome + chromedriver? – S Sufiyaan Mar 16 at 5:43
  • @SSufiyaan ya but you don't have to it's just a polling message – PDHide Mar 16 at 6:54
  • 1
    but it looks bad when scripts are running... – S Sufiyaan Mar 16 at 8:33
  • @SSufiyaan use the mentioned method if you want to supress it , else downgrade chromedriver n chrome if you don't have requirement to test in chrome 80 – PDHide Mar 16 at 8:44
  • This no longer works with Chrome 81 as ChromeDriver 79 will not support 81 – Keith Tyler Apr 25 at 0:05
1

You can also suppress error message using ChromeDriverService class:

    WebDriver browser = null;

    ChromeDriverService service = new ChromeDriverService.Builder()
            .usingDriverExecutable(new File("C:\\chromedriver.exe")).usingPort(4444).withSilent(true)
            .build();
        service.start();



        browser = new RemoteWebDriver(service.getUrl(), new ChromeOptions());

and once the test is over stop the service , else the port remains opened.

browser.quit()
service.stop()
| improve this answer | |
  • can I downgrade the chrome + driver? – S Sufiyaan Mar 16 at 5:43
0

Add this after you initialize the browser. It worked for me.

System.setProperty(ChromeDriverService.CHROME_DRIVER_SILENT_OUTPUT_PROPERTY, "true");

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.