# Org.openqa.selenium. Element Not Interactable Exception

**URL:** <https://forum.katalon.com/t/org-openqa-selenium-element-not-interactable-exception/87687>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [April 28, 2023, 5:55am UTC](https://forum.katalon.com/t/org-openqa-selenium-element-not-interactable-exception/87687 "2023-04-28T05:55:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danica.aquino](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/danica.aquino/32/22830_2.png) [@danica.aquino](https://forum.katalon.com/u/danica.aquino)\
**Post date:** [April 28, 2023, 5:55am UTC](https://forum.katalon.com/t/org-openqa-selenium-element-not-interactable-exception/87687/1 "2023-04-28T05:55:31Z")

</div>

KATALON-STUDIO

I’m getting this error when trying to set text on the object. Would you please help me on this?  
=============== ROOT CAUSE =====================  
Caused by: org.openqa.selenium.ElementNotInteractableException: element not interactable  
At object: ‘Object Repository/SecurityAccessGroup/Page\_Quotes/input\_Owner’

# For trouble shooting, please visit: [https://docs.katalon.com/katalon-studio/docs/troubleshooting.html](https://docs.katalon.com/katalon-studio/docs/troubleshooting.html)

04-28-2023 10:59:14 AM User updates NextGen quote owner

Elapsed time: 40.167s

User updates NextGen quote owner FAILED.  
Reason:  
com.kms.katalon.core.exception.StepFailedException: Unable to set text ‘Test.user2@test.com’ of object ‘Object Repository/SecurityAccessGroup/Page\_Quotes/input\_Owner’  
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.SetTextKeyword.setText(SetTextKeyword.groovy:66)  
at com.kms.katalon.core.webui.keyword.builtin.SetTextKeyword.execute(SetTextKeyword.groovy:37)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)  
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.setText(WebUiBuiltInKeywords.groovy:980)  
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$setText$2.call(Unknown Source)  
at securityAcessGroupScripts.UserQuoteUpdate.user\_updates\_nextgen\_quote\_owner(UserQuoteUpdate.groovy:131)  
at ✽.User updates NextGen quote owner(C:/Users/Danica.Aquino2/Desktop/Katalon Automation/Katalon%20project%20ffix/Include/features/Security Access Group/UserUpdateQuote.feature:29)  
Caused by: org.openqa.selenium.ElementNotInteractableException: element not interactable  
(Session info: chrome=112.0.5615.138)  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘PHCORPL8KBT9G3’, ip: ‘10.169.13.26’, 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: 112.0.5615.138, chrome: {chromedriverVersion: 112.0.5615.49 (bd2a7bcb881c…, userDataDir: C:\Users\DANICA~1.AQU\AppDa…}, goog:chromeOptions: {debuggerAddress: localhost:51628}, 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:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}  
Session ID: 54ba23eca6b2a0f4bcabc1470289971b  
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.clear(RemoteWebElement.java:124)  
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.lambda$new$0(EventFiringWebDriver.java:404)  
at com.sun.proxy.$Proxy22.clear(Unknown Source)  
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.clear(EventFiringWebDriver.java:436)  
at com.kms.katalon.core.webui.keyword.builtin.SetTextKeyword$\_setText\_closure1.doCall(SetTextKeyword.groovy:53)  
at com.kms.katalon.core.webui.keyword.builtin.SetTextKeyword$\_setText\_closure1.call(SetTextKeyword.groovy)  
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)  
at com.kms.katalon.core.webui.keyword.builtin.SetTextKeyword.setText(SetTextKeyword.groovy:66)  
at com.kms.katalon.core.webui.keyword.builtin.SetTextKeyword.execute(SetTextKeyword.groovy:37)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)  
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.setText(WebUiBuiltInKeywords.groovy:980)  
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$setText$2.call(Unknown Source)  
at securityAcessGroupScripts.UserQuoteUpdate.user\_updates\_nextgen\_quote\_owner(UserQuoteUpdate.groovy:131)  
at cucumber.runtime.Utils$1.call(Utils.java:26)  
at cucumber.runtime.Timeout.timeout(Timeout.java:16)  
at cucumber.runtime.Utils.invoke(Utils.java:20)  
at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:48)  
at cucumber.runtime.PickleStepDefinitionMatch.runStep(PickleStepDefinitionMatch.java:50)  
at cucumber.runner.TestStep.executeStep(TestStep.java:68)  
at cucumber.runner.TestStep.run(TestStep.java:50)  
at cucumber.runner.PickleStepTestStep.run(PickleStepTestStep.java:53)  
at cucumber.runner.TestCase.run(TestCase.java:47)  
at cucumber.runner.Runner.runPickle(Runner.java:44)  
at cucumber.runtime.Runtime.runFeature(Runtime.java:120)  
at cucumber.runtime.Runtime.run(Runtime.java:106)  
at cucumber.api.cli.Main.run(Main.java:35)  
at cucumber.api.cli.Main$run.call(Unknown Source)  
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$\_runFeatureFile\_closure1.doCall(CucumberBuiltinKeywords.groovy:108)  
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$\_runFeatureFile\_closure1.doCall(CucumberBuiltinKeywords.groovy)  
at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:74)  
at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:68)  
at com.kms.katalon.core.keyword.internal.KeywordMain$runKeyword.call(Unknown Source)  
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:75)  
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile$0.callStatic(Unknown Source)  
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:248)  
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile.call(Unknown Source)  
at userUpdateQuote.run(userUpdateQuote:21)  
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:448)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)  
at com.kms.katalon.core.common.CommonExecutor.accessTestCaseMainPhase(CommonExecutor.java:65)  
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:151)  
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:106)  
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:185)  
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)  
at TempTestSuite1682650637497.run(TempTestSuite1682650637497.groovy:36)

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [April 29, 2023, 6:01pm UTC](https://forum.katalon.com/t/org-openqa-selenium-element-not-interactable-exception/87687/2 "2023-04-29T18:01:30Z")

</div>

> [@danica.aquino](#):
>
> Caused by: org.openqa.selenium.ElementNotInteractableException: element not interactable

The above is the reason for the error. To “fix” this, you have to ensure your textbox is ready to take your information. So,

1. did you give enough time for the page to form, maybe use `WebUI.waitForPageLoad(10)` beforehand.
2. do you have some other element overlapping the textbox just before your **setText** statement, such as a Calendar GUI. For this, you may have to click elsewhere to have the GUI disappear beforehand. (Note: I don’t see a statement that another element would get the focus, so this is not likely in this case.)
3. do you have to select some other element before the textbox is active. For this, you may have to click on the other element to set up the textbox beforehand.

Start with those and if none work for you, then we need more information such as the HTML.

Edit: You are **not** using the same application as the one in the link, however, I was thinking you may have the same issue as per my #1 issue above.

> [@How to get value to make test case select option by value](http://forum.katalon.com/t/how-to-get-value-to-make-test-case-select-option-by-value/87090/2):
>
> Just a note that you are not using the Katalon Recorder application. You are using the Web Recorder of Katalon Studio. If you can correct your heading, more people that know Katalon Studio may be able to assist you. One thing I can say is that you can add “Wait For Page Load” with an Input of 10 after any statements that moves you from one web page to another, like “Navigate To Url”, “button\_Login” and “span\_PIM”. The Recorder will not insert the wait statements but it is good for stability …

Edit2: So I went to a NextGen HC login site and tried to login with your **setText** adding my suggestion to add `WebUI.waitForPageLoad(10)` and it wasn’t enough time to get the login panel to form. I also had to add a `WebUI.delay(2)`. This was enough to get the **setText** for the username to work correctly and I had no issue with the password as the panel was now formed.

Edit3: Instead of `WebUI.delay(2)`, you can try:

```auto
WebUI.waitForElementVisible(findTestObject('Object Repository/SecurityAccessGroup/Page_Quotes/input_Owner'), 10)

```

---

<div class="post-metadata">

**Author:** ![danica.aquino](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/danica.aquino/32/22830_2.png) [@danica.aquino](https://forum.katalon.com/u/danica.aquino)\
**Post date:** [June 9, 2023, 9:40am UTC](https://forum.katalon.com/t/org-openqa-selenium-element-not-interactable-exception/87687/3 "2023-06-09T09:40:20Z")

</div>

Hi @grylion54, I really appreciate your help on this. however, whatever I try, I encounter the same issue all over again. I do encounter the error when at WebUI.setText

here’s my code.

```
@When("User updates Opportunity owner")
public void user_updates_Opportunity_owner() {

	WebUI.delay(15)

	WebUI.click(findTestObject('Object Repository/SecurityAccessGroup/Page_Opportunities/div_EditOpportunityDetails'))
	WebUI.waitForPageLoad(10)
	WebUI.waitForElementVisible(findTestObject('Object Repository/SecurityAccessGroup/Page_Quotes/input_Owner'), 10)
	WebUI.waitForElementClickable(findTestObject('Object Repository/SecurityAccessGroup/Page_Opportunities/OppOwner'), 30)
	WebUI.click(findTestObject('Object Repository/SecurityAccessGroup/Page_Opportunities/OppOwner'))

	if (GlobalVariable.ACTuser1 == 'actuationtech.user1@emerson.com') {
		
		WebUI.delay(2)
		WebUI.setText(findTestObject('Object Repository/SecurityAccessGroup/Page_Opportunities/OppOwner'), 'Test.user1@test.com') 
		
		}

```

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [June 9, 2023, 6:04pm UTC](https://forum.katalon.com/t/org-openqa-selenium-element-not-interactable-exception/87687/4 "2023-06-09T18:04:21Z")

</div>

Can you **right** click on the element, OppOwner, and select “Inspect” from the pop-up? Do this **twice** to get the HTML to display for the exact location of the element. If you can post the HTML here we may be able to assist you further. Sorry, but my assumption right now is that you have the wrong pathway to the OppOwner textbox.

Edit: Do you have an `<iframe>` in your pathway to the OppOwner textbox? If you **do** , then you have to “move” to it first (`WebUI.switchToFrame(to, 10)`) before you can “move” (click/setText/anything) to the OppOwner textbox.
