I am using Selenium 3.14.0 with Java to automate my tests. Until yesterday(25Mar 2018) , everything was up and running fine.In case of any failures , screenshots were taken and embedded successfully. This morning however the script started crashing with following error.
[1553593587.996][SEVERE]: Timed out receiving message from renderer: 10.000 [1553593587.997][WARNING]: screenshot failed, retrying [1553593597.997][SEVERE]: Timed out receiving message from renderer: 10.000 [1553593608.000][SEVERE]: Timed out receiving message from renderer: 10.000 [1553593608.000][WARNING]: screenshot failed, retrying [1553593618.000][SEVERE]: Timed out receiving message from renderer: 10.000 [1553593628.004][SEVERE]: Timed out receiving message from renderer: 10.000 [1553593628.004][WARNING]: screenshot failed, retrying [1553593638.004][SEVERE]: Timed out receiving message from renderer: 10.000 timeout: Timed out receiving message from renderer: 10.000
I am using
headless chrome=73.0.3683.86 and chromedriver=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72),platform=Windows NT 6.3.9600 x86_64)
Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 73.0.3683.68 (47787ec04b6e3..., userDataDir: C:\Users\Jenkins\AppData\Lo...}, cssSelectorsEnabled: true, databaseEnabled: false, goog:chromeOptions: {debuggerAddress: localhost:3956}, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: none, platform: XP, platformName: XP, proxy: Proxy(), rotatable: false, setWindowRect: true, strictFileInteractability: false, takesHeapSnapshot: true, takesScreenshot: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unexpectedAlertBehaviour: ignore, unhandledPromptBehavior: ignore, version: 73.0.3683.86, webStorageEnabled: true} Session ID: 95fc01b26bcafb4607a4760ef58a8930 Starting ChromeDriver 73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72)
In order to resolve this , I tried adding varios paramters to options such as :-
options.addArguments("--disable-browser-side-navigation" ); options.setPageLoadStrategy(PageLoadStrategy.NONE);
but none of it resolved timeout issue.
I really appreciate an advise on how can I resolve this issue.