During your web tests' execution, you may encounter errors or exceptions with Katalon Studio. In this situation, we recommend checking this document first for resolving the exceptions yourself.
We would be appreciative of your help to contribute most encountered issues and their solutions if they are not documented yet.
In case the exception you are looking for isn’t on this document, please leave a comment below.
The JavaScript “solution” offered for the following situation is BAD and should not be promoted as a solution or even a workaround.
“org.openqa.selenium.WebDriverException: Element is not clickable at point (x, y). Other element would receive the click: …”
Click-prevention techniques (overlays, spinners) are used to control application state while the application is in a state of transition. Using any mechanism to subvert the intentions of the app developer places the application into an unknown state – a state the developer has deliberately guarded against – and renders the test case meaningless. (See Tip: DO NOT CHANGE THE AUT THROUGH TEST CODE).
Scenario
The user causes the app to make a request for more data.
The app uses async XHR/ajax to fulfill the request.
The app puts up a spinner, blocking the UI.
The server fails at some point.
The async fail handler receives an HTTP 500 and tries to deal with it.
Using the suggestion above, the TC has already moved on, dealing now with a broken page that doesn’t know its own state.
The test developer tries to figure out why the TC is now failing somewhere else receiving errors that make no sense.
When I am trying to set an input value it is showing “invalid element state” and and for click event it is showing “Unable to click on element” errors even after adding Delay of 3 mins.
Please could you suggest any other solution?
You can try one of the following solutions to resolve the issue:
Correct the element’s XPath locator. Here is how to identify XPath:
Open your page using Chrome.
Right-click on your desired test object and choose Inspect
In the Elements tab of DevTools, right-click on your target object and select Copy > Copy XPath.
Open your test object in Katalon Studio, update XPath property with the copied value.
Still facing this issue, I tried updating the chrome web browser. Spinner always get stuck and doesn’t move to the element in the page, which it’s supposed to click. Is this being fixed?
I’m having the same issue for Edge and Internet Explorer 11. Installed Edge after installing Katalon, so I’m wondering if there’s a way to specify the path to the browser so that it starts correctly.
Caused by: groovy.lang.MissingMethodException: No signature of method: org.apache.poi.xssf.usermodel.XSSFCell.setCellType() is applicable for argument types: (org.apache.poi.xssf.usermodel.XSSFCell) values:
import org.apache.poi.xssf.usermodel.XSSFCell;
public class TestWriteExcel {
@Keyword
public void demoWriteExcel (String strTest) throws IOException{
//String path = RunConfiguration.getProjectDir()
//FileInputStream fis = new FileInputStream(path+'\\TestData\\TestDetails.xlsx')
FileInputStream fis = new FileInputStream("C:\\Users\\pasthana\\OneDrive - WellDyneRX\\personal_drive\\StateTypeRules_ClientFMC_SingleState.xlsx");
XSSFWorkbook workbook = new XSSFWorkbook(fis);
XSSFSheet sheet = workbook.getSheet("Sheet1");
int rowCount = sheet.getLastRowNum()-sheet.getFirstRowNum();
Row row = sheet.createRow(rowCount+1);
Cell cell = row.createCell(0);
cell.setCellType(cell);
cell.setCellValue(strTest);
//FileOutputStream fos = new FileOutputStream(path+'\\TestData\\TestDetails.xlsx')
FileOutputStream fos = new FileOutputStream("C:\\Users\\pasthana\\OneDrive - WellDyneRX\\personal_drive\\RoutingAdminUI\\StateTypeRules_ClientFMC_SingleState.xlsx")
workbook.write(fos);
fos.close();
Hi. I have and currently using Sauce Labs for test with other tools. When tried using with Katalon Studio 7, I’m getting "Unable to parse remote response: Misconfigured – Sauce Labs Authentication Error.
hi all ’ i’m junior in Katalon and start record test case and then run it after change values but i get an error with drop down list i want to resolve it
=============== ROOT CAUSE =====================
Caused by: org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document
At object: ‘Object Repository/Page_/select_---- ( ) - ( ) ( 9 )_804cd0’
Unable to select option by value ‘1’ of object ‘Object Repository/Page_/select_---- ( ) - ( ) ( 9 )804cd0’ using regular expression (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to select option by value ‘1’ of object 'Object Repository/Page/select_---- ( ) - ( ) ( 9 )_804cd0’ using regular expression
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.SelectOptionByValueKeyword.selectOptionByValue(SelectOptionByValueKeyword.groovy:99)
at com.kms.katalon.core.webui.keyword.builtin.SelectOptionByValueKeyword.execute(SelectOptionByValueKeyword.groovy:71)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.selectOptionByValue(WebUiBuiltInKeywords.groovy:1168)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$selectOptionByValue$4.call(Unknown Source)
at 2 - Add Contract type 1.run(2 - Add Contract type 1:36)
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:442)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:433)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:412)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:404)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:281)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:138)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:129)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1638800528872.run(TempTestCase1638800528872.groovy:25)
Caused by: org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document
(Session info: chrome=96.0.4664.45)
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/stale_element_reference.html
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘LPCAIQ0355’, ip: ‘10.10.10.9’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_282’
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 96.0.4664.45, chrome: {chromedriverVersion: 95.0.4638.17 (a9d0719444d4b…, userDataDir: C:\Users\heid\AppData\Local…}, goog:chromeOptions: {debuggerAddress: localhost:18732}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, 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: 330dfceb0d23fffd22c0caee25212be9
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.getAttribute(RemoteWebElement.java:134)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.lambda$new$0(EventFiringWebDriver.java:404)
at com.sun.proxy.$Proxy11.getAttribute(Unknown Source)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.getAttribute(EventFiringWebDriver.java:447)
at com.kms.katalon.core.webui.common.WebUiCommonHelper.selectOrDeselectOptionsByValueByRegularExpression(WebUiCommonHelper.java:279)
at com.kms.katalon.core.webui.common.WebUiCommonHelper.selectOrDeselectOptionsByValue(WebUiCommonHelper.java:263)
at com.kms.katalon.core.webui.keyword.builtin.SelectOptionByValueKeyword$_selectOptionByValue_closure1.doCall(SelectOptionByValueKeyword.groovy:88)
at com.kms.katalon.core.webui.keyword.builtin.SelectOptionByValueKeyword$_selectOptionByValue_closure1.call(SelectOptionByValueKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
at com.kms.katalon.core.webui.keyword.builtin.SelectOptionByValueKeyword.selectOptionByValue(SelectOptionByValueKeyword.groovy:99)
at com.kms.katalon.core.webui.keyword.builtin.SelectOptionByValueKeyword.execute(SelectOptionByValueKeyword.groovy:71)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.selectOptionByValue(WebUiBuiltInKeywords.groovy:1168)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$selectOptionByValue$4.call(Unknown Source)
at Script1638799643880.run(Script1638799643880.groovy:36)
… 11 more
)
The element may have been “hidden” when you asked for it, or was not on the page yet, or it may have been covered by a pop-up, or…
The error message usually gives some indication of which of the above reason gives the cause.
I increased the action time to 2s, and it appears as though the page is fully loaded at the time of the error. There are no pop ups. This is the full output from the test failure, I’m not seeing an error beyond ElementNotInteractableException That exception isn’t listed on this page which is also why I’m posting here.
=============== 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
================================================
12-22-2021 04:15:23 PM Test Cases/test_testCase
Elapsed time: 21.592s
Test Cases/test_testCase FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to click on object 'Object Repository/Page_daz31f/button_SSD__controlPanel controlPanelOpen s_1cd1f0 (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:620)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$4.call(Unknown Source)
at test_testCase.run(test_testCase:30)
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:442)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:433)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:412)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:404)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:281)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:138)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:129)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1640218521332.run(TempTestCase1640218521332.groovy:25)
Caused by: org.openqa.selenium.ElementNotInteractableException: element not interactable
(Session info: chrome=96.0.4664.110)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'C02L52PSFFT1', ip: '2600:1700:dea0:2f90:e91f:ada3:7ee2:2773%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '1.8.0_275'
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: true, browserName: chrome, browserVersion: 96.0.4664.110, chrome: {chromedriverVersion: 95.0.4638.17 (a9d0719444d4b..., userDataDir: /var/folders/7t/y7ql0qv96jq...}, goog:chromeOptions: {debuggerAddress: localhost:63151}, 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: 8c1dd87ff2bc3e7bbbaed97fa0d03ee8
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)
... 17 more