-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for pressing Delete key on Android #1039
Comments
@LeoNatan, I can probably take care of the PR for this, we'll just need some discussion on the implementation. The way I see it, we can either:
element.typeText('aa\bcc')
// on Android becomes
element.typeText('aa')
element._pressKey(67) // internal
element.typeText('cc')
|
Sadly, |
The |
If you could submit a PR, that would be lovely. Thank you! |
I think the abstraction sounds nice. I'll take another look at this tonight. Should be able to open a PR. |
Unlike iOS, there doesn't appear a way to press the "Delete" key on Android. For iOS, I'm am able to use the
typeText
method and the"\b"
string. From what I can tell through looking at the code is that either the UIDevice's pressDelete method or the Android Espresso pressKey method are the ways to solve this, however neither of these seem to be exposed to the JavaScript API.The text was updated successfully, but these errors were encountered: