Clipboard:paste()
Paste the current clipboard text into the focused input field.
Signature
Clipboard:paste(): void
Returns
void
Description
This method triggers the Android paste action on the currently focused editable element.
Examples
Clipboard:copy("Hello world")
editText(1):click()
Clipboard:paste()
Clipboard:copy("secret-password")
Screen:click(Point(300, 900))
Clipboard:paste()
Notes
Clipboard:paste()requires Accessibility touch mode- The target field must already be focused before calling this method
- If there is no focused editable field, the paste action may do nothing