SendKeys does not unescape double-slash
See original GitHub issueRepro steps: Use Element.SendKeys to enter a string including a single slash, e.g. “foo/bar”
Expected:
WinAppDriver correctly enters foo\bar
Actual:
WinAppDriver enters foo\\bar
Issue Analytics
- State:
- Created 6 years ago
- Comments:18 (7 by maintainers)
Top Results From Across the Web
SendKeys does not unescape double-slash · Issue #217
Repro steps: Use Element.SendKeys to enter a string including a single slash, e.g. "foo/bar" Expected: WinAppDriver correctly enters foo\bar ...
Read more >Selenium Webdriver using Java - sendkeys with double slash
1 Answer 1 ... Try the code like this (Assuming you want the output as 'test\\'): driver.findElement(By.id("txtEditExcludeRegPath")).sendKeys(" ...
Read more >Using SendKeys
SendKeys does not permit you to set the foreground window, ... Double-click the button in the designer to add a Click event.
Read more >SendKeys.Send(String) Method (System.Windows.Forms)
There is not an active application to send keystrokes to. ... When the example is running, double-click the form to trigger the button's...
Read more >SendKeys Class (System.Windows.Forms)
The SendKeys class is susceptible to timing issues, which some developers have had to work around. The updated implementation is still susceptible to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Aha - it doesn’t repro with the US keyboard.
Code executed:
tb.SendKeys("`-=[]\\;',./~!@#$%^&*()_+{}|:\"<>? abcd \\\\ \\£ £ ££");
Result in text box:
`-=[]\;',./~!@#$%^&*()_+{}|:"<>? abcd \\ \£ £ ££
Screenshot:
Following up a feature request as a result of this - it would be very handy if WinAppDriver could switch the device into en-US keyboard layout at the start, and (possibly) switch back to the pre-test keyboard layout at the end.