My script works fine 50% of the time, but every now and then it fails with this error:
2019-02-28 18:44:54.140 DEBUG testcase.Loop Through All Assets - 21: try
2019-02-28 18:44:54.140 DEBUG testcase.Loop Through All Assets - 1: waitForElementVisible(findTestObject("Pages/Image Gallery/PostEditor/FacebookAdIframeV2"), 90)
2019-02-28 18:44:56.700 WARN c.k.k.c.w.h.s.WebUIScreenCaptor - Cannot take screenshot
2019-02-28 18:44:56.700 ERROR c.k.k.core.keyword.internal.KeywordMain - ❌ Unable to wait for object 'Object Repository/Pages/Image Gallery/PostEditor/FacebookAdIframeV2' to be visible (Root cause: org.openqa.selenium.WebDriverException: chrome not reachable
(Session info: headless chrome=72.0.3626.119)
(Driver info: chromedriver=2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d),platform=Linux 4.15.0-1032-aws x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:36.161Z'
System info: host: 'ip-10-0-10-49', ip: '10.0.10.49', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-1032-aws', java.version: '1.8.0_191'
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.43.600233 (523efee95e3d68..., userDataDir: /tmp/.org.chromium.Chromium...}, cssSelectorsEnabled: true, databaseEnabled: false, goog:chromeOptions: {debuggerAddress: localhost:39153}, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 72.0.3626.119, webStorageEnabled: true}
Session ID: 5840b4c85e0d700181811654e39f2c26
*** Element info: {Using=css selector, value=#iframeFacebook})
ERROR: cannot find iframe on page
The root cause seems to be:
Root cause: org.openqa.selenium.WebDriverException: chrome not reachable
I have not been able to find any reason for this random failing. Any insights or direction towards a solution would be much appreciated.
Thanks,
Nauman