Skip to content

sendkeys An unknown error occurred in the remote end #716

Open
@sebglon

Description

@sebglon

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."}}  

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions