maestro
maestro copied to clipboard
[Feature Request] Add an optional delay between keystrokes
Is your feature request related to a problem? Please describe. At the moment, if there are multiple text boxes relating to something, e.g: a date of birth field, or passcode. When inputting the text it can sometimes try to type too quickly (much quicker than a human would) and can subsequently miss inputting some characters.
Describe the solution you'd like
What would be a nice addition if on inputText
you could specify a time delay between keystrokes, like 100 (in ms), very similar to what other frameworks do such as https://playwright.dev/docs/api/class-keyboard#keyboard-type-option-delay
Describe alternatives you've considered At the moment, I'm clicking between the various inputs even though the cursor moves to the same box just to guarantee the input is done correctly, this however slows down the tests by a couple of seconds as I have to wait for the next input to be selected.
it would only miss if you're blocking the UI thread on the device, which is a code smell, or you're running on a very low memory host or something ? How is it missing the input keystrokes ??? You should be able to capture all keyboard strokes without having to introduce delays
In our case it sometimes types extra characters or misses some characters e.g. when inputting email in the form of [email protected]
@sdfgsdfgd - I appreciate that this happens on CI (but a reasonable amount of power considering) but there are also benefits in that it would allow the input to appear more human rather than machine with a small delay between the keystrokes.
I also get a similar issue with @orestesgaolin where it can sometimes input extra characters as well: