Open moxorama opened 2 months ago
Hey @moxorama, thanks for proposing this.
I guess that by problems with "input flakiness" you mean issue #2005 – good news is there's already a PR #2027 that fixes issue #2005.
Anyway, I see why you might think that pasting text would be faster than typing – but actually, under the hood pasteText
just calls inputText
:
So there'd be no difference in speed (unless we also made changes to how inputText
works, which I think is doable, but requires some investigation if it would be stable enough on both iOS and Android).
That said, I think being able to set contents of clipboard with the hypothetical new copyText
command would be a nice, small QoL addition.
copyText:
text: This string will be saved in Maestro's clipboard
or
copyText: This string will be saved in Maestro's clipboard
Use case
There is a lot of issues with input flakiness, but there is no need to test input each time We can just paste text in input, and I hope it will be more stable
https://github.com/mobile-dev-inc/maestro/issues/1225
Proposal
There is the
pasteText
command in maestro, so addingcopyText
with string argument will give us more complete api.Instead of
will be something like this
Or even simplier - it could be just string argument to pasteText, so test will be
Anything else?
No response