maestro icon indicating copy to clipboard operation
maestro copied to clipboard

[Feature Request] Add an optional delay between keystrokes

Open gregoryduckworth opened this issue 6 months ago • 3 comments

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.

gregoryduckworth avatar Feb 02 '24 09:02 gregoryduckworth

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

sdfgsdfgd avatar Feb 13 '24 05:02 sdfgsdfgd

In our case it sometimes types extra characters or misses some characters e.g. when inputting email in the form of [email protected]

orestesgaolin avatar Feb 15 '24 12:02 orestesgaolin

@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: image

gregoryduckworth avatar Feb 19 '24 11:02 gregoryduckworth