Troubleshoot common exceptions when executing web tests

You’re right. I don’t see the reason for your error in the message. How about adding some wait statements before you click?

WebUI.waitForPageLoad(10)
WebUI.waitForElementVisible(findTestObject('Page_daz31f/button_SSD__controlPanel controlPanelOpen s_1cd1f0 (1)'), 10)

WebUI.click(findTestObject('Page_daz31f/button_SSD__controlPanel controlPanelOpen s_1cd1f0 (1)'))

Back from the holidays. Running the test after inserting Wait For Page Load 10s and Wait For Element Visible created the following result. I’m reading this as if the object is taking a long time to become visible. Which is odd because it is immediately interactable in real time

=============== ROOT CAUSE =====================
Caused by: org.openqa.selenium.ElementNotInteractableException: element not interactable
At object: 'Object Repository/Page_daz31f/button_SSD__controlPanel controlPanelOpen s_1cd1f0 (1)'

For trouble shooting, please visit: https://docs.katalon.com/katalon-studio/docs/troubleshooting.html
================================================

01-06-2022 01:32:17 PM click(findTestObject("Page_daz31f/button_SSD__controlPanel controlPanelOpen s_1cd1f0 (1)"))

Elapsed time: 2.661s

Unable to click on object 'Object Repository/Page_daz31f/button_SSD__controlPanel controlPanelOpen s_1cd1f0 (1)' (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to click on object 'Object Repository/Page_daz31f/button_SSD__controlPanel controlPanelOpen s_1cd1f0 (1)'

Hey, I’m afraid I don’t have the answer, but I’m getting a similar issue. I am, however, BRAND NEW to Katalon so I have no idea what I’m doing. But I was guessing that Katalon was unable to locate the element, so maybe it’s being defined wrong? I tried selecting by XPATH and selecting by Attributes, but neither of them worked better. My big problem is that sometimes it works and then I’ll run the test again a minute later and it doesn’t work, and then a minute later it does again. I’ve also tried adding a page load, and a waitForElementVisible, but the page load doesn’t change anything and the waitForElementVisible fails also.

Perhaps you should create your own question on this forum so that it is not “hidden” in an old one. This will give more chances of people reviewing it.

Not able to find out the solution for below error: Can anyone help me out on this problem please

=============== ROOT CAUSE =====================

Caused by: org.openqa.selenium.ElementNotInteractableException: element not interactable

At object: ‘Object Repository/Page_Deonde/button_Add Vendors_1’

For trouble shooting, please visit: https://docs.katalon.com/katalon-studio/docs/troubleshooting.html

================================================

04-28-2022 12:59:54 PM click(findTestObject(“Object Repository/Page_Deonde/button_Add Vendors_1”), CONTINUE_ON_FAILURE)

Elapsed time: 0.751s

Unable to click on object ‘Object Repository/Page_Deonde/button_Add Vendors_1’ (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/Page_Deonde/button_Add Vendors_1’

at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)

at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:74)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:40)

at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)

at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:608)

at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$4.call(Unknown Source)

at Deonde_Add_Vendor_Flow.run(Deonde_Add_Vendor_Flow:78)

at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)

at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)

at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:445)

at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:436)

at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:415)

at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:407)

at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:284)

at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:142)

at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:133)

at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)

at TempTestCase1651130937764.run(TempTestCase1651130937764.groovy:25)

Caused by: org.openqa.selenium.ElementNotInteractableException: element not interactable

(Session info: chrome=100.0.4896.127)

Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’

System info: host: ‘QA-Icoderzs-Mac-mini.local’, ip: ‘fe80:0:0:0:59:81a3:c001:4688%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.13.6’, java.version: ‘1.8.0_275’

Driver info: com.kms.katalon.selenium.driver.CChromeDriver

Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 100.0.4896.127, chrome: {chromedriverVersion: 100.0.4896.60 (6a5d10861ce8…, userDataDir: /var/folders/h9/2q4c0bbj4jn…}, goog:chromeOptions: {debuggerAddress: localhost:53215}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}

Session ID: 164abb0e6e448f6757b4b8b523f4d832

at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)

at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)

at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)

at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)

at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)

at com.kms.katalon.selenium.driver.CChromeDriver.execute(CChromeDriver.java:19)

at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285)

at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:84)

at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.lambda$new$0(EventFiringWebDriver.java:404)

at com.sun.proxy.$Proxy11.click(Unknown Source)

at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.click(EventFiringWebDriver.java:417)

at org.openqa.selenium.WebElement$click.call(Unknown Source)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.clickUntilSuccessWithTimeout(ClickKeyword.groovy:81)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.clickUntilSuccessWithTimeout(ClickKeyword.groovy)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1.doCall(ClickKeyword.groovy:67)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1.call(ClickKeyword.groovy)

at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:74)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:40)

at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)

at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:608)

at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$4.call(Unknown Source)

at Script1651126931496.run(Script1651126931496.groovy:78)

… 11 more

)