Sendkeys not working with Edge

I have used sendkeys to upload docs on a page and it works fine when i run against chrome.

here is the code:

String path1 = ‘C:\ML1DocsForUpload\Screenshot_SyncLicense_Shortcut2.png’
String path2 = ‘C:\ML1DocsForUpload\Database_Objects_Used.xlsx’
String path3 = ‘C:\ML1DocsForUpload\loadtesting.jpg’

String finalPath = (((((((((path1 + ‘\n’) + path2) + ‘\n’) + path3) + ‘\n’) + path4) + ‘\n’) + path5) + ‘\n’) + path6

WebUI.sendKeys(findTestObject(‘Initial Application/Document Upload/UploadSectionArea’), finalPath)

When I run this code against Edge, I get the following error:
=============== ROOT CAUSE =====================
Caused by: org.openqa.selenium.ElementNotInteractableException: The command failed because the specified element is not pointer or keyboard interactable.
At object: ‘Object Repository/Initial Application/Document Upload/UploadSectionArea’

For trouble shooting, please visit: https://docs.katalon.com/katalon-studio/docs/troubleshoot-common-execution-exceptions-web-test.html

09-23-2020 11:21:56 AM sendKeys(findTestObject(“Initial Application/Document Upload/UploadSectionArea”), finalPath)

Elapsed time: 0.601s

Unable to send keys ‘C:\ML1DocsForUpload\MyLicense 1 Test Plan1.doc
C:\ML1DocsForUpload\Screenshot_SyncLicense_Shortcut2.png
C:\ML1DocsForUpload\Database_Objects_Used.xlsx
C:\ML1DocsForUpload\loadtesting.jpg
C:\ML1DocsForUpload\MyLicense One Test Plan.docx
C:\ML1DocsForUpload\create new applicant.txt’ to object ‘Object Repository/Initial Application/Document Upload/UploadSectionArea’ (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to send keys ‘C:\ML1DocsForUpload\MyLicense 1 Test Plan1.doc
C:\ML1DocsForUpload\Screenshot_SyncLicense_Shortcut2.png
C:\ML1DocsForUpload\Database_Objects_Used.xlsx
C:\ML1DocsForUpload\loadtesting.jpg
C:\ML1DocsForUpload\MyLicense One Test Plan.docx
C:\ML1DocsForUpload\create new applicant.txt’ to object ‘Object Repository/Initial Application/Document Upload/UploadSectionArea’
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.SendKeysKeyword.sendKeys(SendKeysKeyword.groovy:60)
at com.kms.katalon.core.webui.keyword.builtin.SendKeysKeyword.execute(SendKeysKeyword.groovy:38)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.sendKeys(WebUiBuiltInKeywords.groovy:860)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$sendKeys$7.call(Unknown Source)
at Incorrect Url.run(Incorrect Url:136)
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:339)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:330)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:309)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:301)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:235)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1600874444040.run(TempTestCase1600874444040.groovy:25)
Caused by: org.openqa.selenium.ElementNotInteractableException: The command failed because the specified element is not pointer or keyboard interactable.
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘’, ip: ‘’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: com.kms.katalon.selenium.driver.CEdgeDriver
Capabilities {acceptInsecureCerts: false, browserName: MicrosoftEdge, browserVersion: 44.18362.449.0, javascriptEnabled: true, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}}
Session ID: 214420D5-9F78-4065-A9A8-D5894C1D3C29
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.CEdgeDriver.execute(CEdgeDriver.java:20)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285)
at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:106)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.lambda$new$0(EventFiringWebDriver.java:404)
at com.sun.proxy.$Proxy10.sendKeys(Unknown Source)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.sendKeys(EventFiringWebDriver.java:429)
at com.kms.katalon.core.webui.keyword.builtin.SendKeysKeyword$_sendKeys_closure1.doCall(SendKeysKeyword.groovy:53)
at com.kms.katalon.core.webui.keyword.builtin.SendKeysKeyword$_sendKeys_closure1.call(SendKeysKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
at com.kms.katalon.core.webui.keyword.builtin.SendKeysKeyword.sendKeys(SendKeysKeyword.groovy:60)
at com.kms.katalon.core.webui.keyword.builtin.SendKeysKeyword.execute(SendKeysKeyword.groovy:38)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.sendKeys(WebUiBuiltInKeywords.groovy:860)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$sendKeys$7.call(Unknown Source)
at Script1589211749633.run(Script1589211749633.groovy:136)
… 11 more
)

Old Edge or the new(ish) Edge-Chromium?

Microsoft Edge 44.18362.449.0

Based on that half-answer, that’s an old version before the switch to using chromium. Since Edge is updated along with Windows (10) you probably aren’t using (or testing on) Windows 10.

But that’s a bunch of guess work because your answer is so brief.

Back to your issue.

Different browsers take different amounts of time to display a page and its elements. If you’re convinced you have the right path to the element, try waiting longer.

didnt think that was a half answer. i gave you the version of edge i was running. wasnt trying to be an ass, just thought that was the answer you needed.

let me look into the chromium and also try the wait

appreciate the quick replies

I am not sure why you have all the parenthesis in your finalPath, but I don’t think you need them.

Also, I think you should try to have double slashes within the test code. You may have them already but the copy and paste into this forum sometimes changes this.

As an example:
image

Just something to try.

1 Like

cool, thank you. i will try that.