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.

sendkeys An unknown error occurred in the remote end

See original GitHub issue

WinAppDriver 1.1.1 WinAppDriverUI 1.1

I have generated a code with UI Recorder

                // LeftClick on Button "ETS5™ - 1 fenêtre en cours d’exécution" at (22,21)
                Console.WriteLine("LeftClick on Button \"ETS5™ - 1 fenêtre en cours d’exécution\" at (22,21)");
                string xpath_LeftClickButtonETS51fenêt_22_21 = "/Pane[@ClassName=\"#32769\"][@Name=\"Bureau 1\"]/Pane[@ClassName=\"Shell_TrayWnd\"][@Name=\"Barre des tâches\"]/ToolBar[@ClassName=\"MSTaskListWClass\"][@Name=\"Applications en cours d’exécution\"]/Button[@Name=\"ETS5™ - 1 fenêtre en cours d’exécution\"][starts-with(@AutomationId,\"KNX.ETS.v\")]";
                var winElem_LeftClickButtonETS51fenêt_22_21 = desktopSession.FindElementByAbsoluteXPath(xpath_LeftClickButtonETS51fenêt_22_21);
                if (winElem_LeftClickButtonETS51fenêt_22_21 != null)
                {
                    winElem_LeftClickButtonETS51fenêt_22_21.Click();
                }
                else
                {
                    Console.WriteLine($"Failed to find element using xpath: {xpath_LeftClickButtonETS51fenêt_22_21}");
                    return;
                }


                // KeyboardInput VirtualKeys=""aaabbb"" CapsLock=False NumLock=False ScrollLock=False
                Console.WriteLine("KeyboardInput VirtualKeys=\"\"aaa\"\" CapsLock=False NumLock=False ScrollLock=False");
                System.Threading.Thread.Sleep(100);
                winElem_LeftClickButtonETS51fenêt_22_21.SendKeys("aaa");

When i run it, i have an error: An unknown error occurred in the remote end on SendKeys(…)

On WinAppDriver:

==========================================                                                                              POST /session/D5A8ABA6-483C-4334-A595-9E8083F9BB25/element/42.66144.4.-2147483647.66144.-4.10/click HTTP/1.1            Accept: application/json, image/png                                                                                     Content-Length: 2                                                                                                       Content-Type: application/json;charset=utf-8                                                                            Host: 127.0.0.1:4723                                                                                                    User-Agent: selenium/3.11.0 (.net windows)                                                                                                                                                                                                      {}                                                                                                                      HTTP/1.1 200 OK                                                                                                         Content-Length: 63                                                                                                      Content-Type: application/json                                                                                                                                                                                                                  {"sessionId":"D5A8ABA6-483C-4334-A595-9E8083F9BB25","status":0}                                                                                                                                                                                 ==========================================                                                                                                                                                                                                      POST /session/D5A8ABA6-483C-4334-A595-9E8083F9BB25/element/42.66144.4.-2147483647.66144.-4.10/value HTTP/1.1            Accept: application/json, image/png                                                                                     Content-Length: 20                                                                                                      Content-Type: application/json;charset=utf-8                                                                            Host: 127.0.0.1:4723                                                                                                    User-Agent: selenium/3.11.0 (.net windows)                                                                                                                                                                                                      {"value":["aaa"]}                                                                                                    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."}}  

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
christian-bromanncommented, Jun 21, 2019

I think this is because WinAppDriver doesn’t return a value key in the responses which is required according to the W3C spec. So it returns

{"sessionId":"89AD0463-E87A-49CB-ABA1-16EDB3D57DE6","status":0}

but should return

{"sessionId":"89AD0463-E87A-49CB-ABA1-16EDB3D57DE6","status":0,"value":null}
0reactions
sebgloncommented, Nov 9, 2019

I have tested with US keyboard and it’s the same error

Read more comments on GitHub >

github_iconTop Results From Across the Web

sendkeys fails with error An unknown error occurred in the ...
I get exception "An unknown error occurred in the remote end while processing the command." I am not sure how to proceed.. WinAppDriver...
Read more >
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 >
UI Automation... SendKeys not working
An unknown error occurred in the remote end while processing the command. Any Idea why it happens. With a standard WPF textbox it...
Read more >
Appium Unable to perform any push commands to remote ...
I'm unable to sendKeys or any other “push” command without getting the ... Original error: An unknown error occurred in the remote end...
Read more >
Switch application window - Katalon Studio
WebDriverException : An unknown error occurred in the remote end while processing the command. (WARNING: The server did not provide any ...
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