That does not seem to work.
As far as I can see driver.SendKeys takes a string as a parameter, so the above sequences end up sending “Ho” or “8” to the control.
Is there any way of sending a Delete or Backspace character to a Windows Control using Appium. Perhaps I will have to use the WinAppDriver API and drive WinAppDriver directly.
I’m actually trying to overwrite a RichTextBox, and unlike a TextBox, .SendKeys does not clear the RTB before sending the string, and the .Clear() method appears not to work with RichTextBoxes. (Very frustrating!).
Getting out of my depth here as I don’t use Windows at all, so can’t replicate.
WRT Rich TextBox, sounds like it could be a bug. Have you thought about filing one on the repo to see if this is correct behavior? Might help to reduce the frustration level if you talked to developers directly with an issue.