question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown server-side error when attempting to Sendkeys to new e-mail window on Outlook

See original GitHub issue

When trying to sendkeys to the new e-mail window on Outlook I get the following error

org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: An unknown error occurred in the remote end while processing the command. (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'WVA01000004', ip: '10.200.153.43', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_212' Driver info: io.appium.java_client.windows.WindowsDriver Capabilities {app: Root, deviceName: WindowsPC, javascriptEnabled: true, platform: WINDOWS, platformName: WINDOWS}

When interacting with this window I’ve created a new session and then I attempt to sendkeys with the new driver session but I still get an unknown error message. While the test is running it looks as though it clicks into the element and when it then attempts to pass the String into the element it fails.

`
DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability(“app”, “Root”); driver = new WindowsDriver(new URL(“http://127.0.0.1:4723”),capabilities );

    driver.findElementByName("Page 1 content").sendKeys("PLEASE WORK!");

`

I’ve read up on previous issues with this error and I’ve made sure to run WinAppdriver with admin privileges. The output from WinAppDriver is below.

`========================================== POST /session/E0D15E60-CDED-4FC6-AC48-4AC22FC9208D/element HTTP/1.1 Accept-Encoding: gzip Connection: Keep-Alive Content-Length: 50 Content-Type: application/json; charset=utf-8 Host: 127.0.0.1:4723 User-Agent: selenium/3.141.59 (java windows)

{ “using”: “name”, “value”: “Page 1 content” } HTTP/1.1 200 OK Content-Length: 99 Content-Type: application/json

{“sessionId”:“E0D15E60-CDED-4FC6-AC48-4AC22FC9208D”,“status”:0,“value”:{“ELEMENT”:“42.723236.4.2”}}

========================================== POST /session/E0D15E60-CDED-4FC6-AC48-4AC22FC9208D/element/42.723236.4.2/value HTTP/1.1 Accept-Encoding: gzip Connection: Keep-Alive Content-Length: 64 Content-Type: application/json; charset=utf-8 Host: 127.0.0.1:4723 User-Agent: selenium/3.141.59 (java windows)

{ “id”: “42.723236.4.2”, “value”: [ “PLEASE WORK!” ] }

HTTP/1.1 500 Internal Error Content-Length: 133 Content-Type: application/json

{“status”:13,“value”:{“error”:“unknown error”,“message”:“An unknown error occurred in the remote end while processing the command.”}}

========================================== DELETE /session/5D01D8E1-20DC-4F21-9430-3ECF7EDA08AE HTTP/1.1 Accept-Encoding: gzip Connection: Keep-Alive Content-Length: 0 Host: 127.0.0.1:4723 User-Agent: selenium/3.141.59 (java windows)

HTTP/1.1 200 OK Content-Length: 12 Content-Type: application/json

{“status”:0}`

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
OhAyecommented, Aug 21, 2019

Hi @nbulusanjr - I’ve added my code below, I’m using Java so I hope this helps.

   `WebElement emailAddressInput = driver.findElementByName("To");
    WebElement mailContent = driver.findElementByName("Page 1 content");
    WebElement subjectInput = driver.findElementByAccessibilityId("4101");

    Actions performAct = new Actions(driver);
    performAct.sendKeys(mailContent, mailText).build().perform();
    performAct.sendKeys(emailAddressInput, toText).build().perform();
    performAct.sendKeys(subjectInput, subjectText).build().perform();`
1reaction
OhAyecommented, Jul 31, 2019

Hi mate, thanks for the reply. I am handling the window handles as its a new window so its the only way to interact with it. I am able to interact with the window in other ways such as clicking elements on the window so I know the driver is picking up the window just fine. But SendKeys just continues to throws an error. I ended up using Actions as a workaround.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Outlook New Email Unable to send keys to element when ...
When using WinAppDriver I'm receiving an unknown error when trying to sendkeys to the new email window. I've created a new session to ......
Read more >
Incoming email isn't converted to a case - Dynamics 365 ...
Go to the Automatic Record Creation and Update Rule configuration and check whether the Create contact for unknown sender box is selected.
Read more >
Troubleshooting and monitoring server-side synchronization
Cause: This error occurs if a user is configured to use the Microsoft Exchange Online email server profile but their email address hasn't...
Read more >
Outlook Issues: How to Fix The Most Annoying Bugs in 2023
How to fix the most annoying Outlook issues (account access, synchronization, authentication, and others)? Read our guide to troubleshoot!
Read more >
12 Proven Ways to Fix "Outlook Not Receiving Emails" Error!
Is your Microsoft Outlook not receiving emails or not sending emails? Fix it, as this guide has listed every possible solution for Outlook...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found