-
Notifications
You must be signed in to change notification settings - Fork 318
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
eraseText
only erases text until the middle if the text is long enough
#1777
Comments
Hey @danielferromeral, thanks for creating the issue. Could you provide some more information? For example:
|
Hi @bartekpacia. I have tried in two different devices (both are virtual) and in two different views. One of the devices was a Virtual iPhone 15 with iOS 17.5, and the views were made with Swift and UIKit. The flow I used is this: - runFlow:
label: "Erase Text"
commands:
- tapOn:
id: "emailInput"
- inputText "[email protected]"
- tapOn:
id: "emailInput"
- eraseText
- tapOn:
id: "emailInput"
- eraseText And this is the result: |
Thanks a ton. If you could also drop an |
eraseText
only erases text until the middle if the text is long enough
Hi, I cannot provide a sample code, sorry, not a mobile dev. But I guess you could use any input text, like the search bar in the settings for Android. In fact, I made this little script with the search bar of the setting app and is the same bahavoiur. Hope it helps. appId: com.android.settings
---
- launchApp
- tapOn:
id: "com.android.settings:id/search_action_bar"
- inputText: "Lorem ipsum dolor sit amet"
# Here you would do other actions and the cursor would be no longer at the end of the text
- tapOn:
id: "com.google.android.settings.intelligence:id/open_search_view_edit_text"
- eraseText
- tapOn:
id: "com.google.android.settings.intelligence:id/open_search_view_edit_text"
- eraseText
- stopApp |
Thanks @danielferromeral, I was able to reproduce the problem thanks to your code sample. Run videorepro.mp4 |
Running into the same problem with Maestro CLI v1.38.1 when executing tests on a physical Android device (OnePlus Nord, Android 12, connected to Windows 11 via USB). Also, this looks like it's a duplicate of #495. |
When I tapOn a textInput, the cursors sets in the middle. When I use eraseText, it stats to delete from that point, but if my text was longer that the middle, some letters are not deleted, so I have to tap again and delete it again.
I would like to be able to complete delete the text input with a single command, or to be able to move the cursor to the end.
The text was updated successfully, but these errors were encountered: