{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/WinAppDriver/issues/116","repository_url":"https://api.github.com/repos/Microsoft/WinAppDriver","labels_url":"https://api.github.com/repos/Microsoft/WinAppDriver/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/WinAppDriver/issues/116/comments","events_url":"https://api.github.com/repos/Microsoft/WinAppDriver/issues/116/events","html_url":"https://github.com/Microsoft/WinAppDriver/issues/116","id":196679955,"number":116,"title":"sendKey throw excption","user":{"login":"WaterIsWater","id":22619584,"avatar_url":"https://avatars.githubusercontent.com/u/22619584?v=3","gravatar_id":"","url":"https://api.github.com/users/WaterIsWater","html_url":"https://github.com/WaterIsWater","followers_url":"https://api.github.com/users/WaterIsWater/followers","following_url":"https://api.github.com/users/WaterIsWater/following{/other_user}","gists_url":"https://api.github.com/users/WaterIsWater/gists{/gist_id}","starred_url":"https://api.github.com/users/WaterIsWater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WaterIsWater/subscriptions","organizations_url":"https://api.github.com/users/WaterIsWater/orgs","repos_url":"https://api.github.com/users/WaterIsWater/repos","events_url":"https://api.github.com/users/WaterIsWater/events{/privacy}","received_events_url":"https://api.github.com/users/WaterIsWater/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-20T14:02:13Z","updated_at":"2016-12-20T23:23:11Z","closed_at":null,"body":"Hello\r\nFirst of all, Thanks you for this great program.\r\n\r\nI used WinAppDirver for UniversialWindowsApp.\r\nDuring UI test, my test code finds TextBox with automationID.\r\nand uses 'SendKey' method.\r\nBut exception is occured.\r\nSystem.InvalidOperationException: An unknown error occurred in the remote end while processing the command.\r\n\r\nSample Code is below.\r\n----------------\r\nIOSElement testTextBox = SamsungNotesSession.FindElementByAccessibilityId(\"Text_box_for_test\");\r\nAssert.IsNotNull(testTextBox);\r\ntestTextBox.SendKeys(\"This is test\"); <= this point.\r\n\r\nQuestions,\r\n1. Is it impossible that TextBox uses SendKey mthod?\r\n2. If yes, how to set text for TextBox?\r\n\r\nThank you very much."},"comment":{"url":"https://api.github.com/repos/Microsoft/WinAppDriver/issues/comments/268388510","html_url":"https://github.com/Microsoft/WinAppDriver/issues/116#issuecomment-268388510","issue_url":"https://api.github.com/repos/Microsoft/WinAppDriver/issues/116","id":268388510,"user":{"login":"timotiusmargo","id":2808893,"avatar_url":"https://avatars.githubusercontent.com/u/2808893?v=3","gravatar_id":"","url":"https://api.github.com/users/timotiusmargo","html_url":"https://github.com/timotiusmargo","followers_url":"https://api.github.com/users/timotiusmargo/followers","following_url":"https://api.github.com/users/timotiusmargo/following{/other_user}","gists_url":"https://api.github.com/users/timotiusmargo/gists{/gist_id}","starred_url":"https://api.github.com/users/timotiusmargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timotiusmargo/subscriptions","organizations_url":"https://api.github.com/users/timotiusmargo/orgs","repos_url":"https://api.github.com/users/timotiusmargo/repos","events_url":"https://api.github.com/users/timotiusmargo/events{/privacy}","received_events_url":"https://api.github.com/users/timotiusmargo/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T23:23:11Z","updated_at":"2016-12-20T23:23:11Z","body":"Hi @WaterIsWater!\r\n\r\nIt is absolutely possible to use SendKey on UWP TextBox elements. You can see some examples from the samples and tests below:\r\nhttps://github.com/Microsoft/WinAppDriver/blob/v0.7-beta/Samples/C%23/AlarmClockTest/Scenario.cs#L187\r\nhttps://github.com/Microsoft/WinAppDriver/blob/v0.7-beta/Tests/W3CWebDriver/Back.cs#L37\r\n\r\nYou can also the [Inspect tool](https://github.com/Microsoft/WinAppDriver#inspecting-ui-elements) to ensure that the element retrieved from the Text_box_for_test is indeed TextBox/EditControl.\r\n"}}
{"actor":{"display_login":"timotiusmargo"}}