Utilities
Steps for clipboard operations, running JavaScript, and adding media.
copyText
Read the text of the element matching the selector and store it in the app client internal clipboard (OS clipboard is not used). Use with pasteText.
Parameters
Example
pasteText
Paste the content stored by copyText into the currently focused input via input_text. Reuses idb/adb input flow on both platforms.
No parameters.
Example
Tips
- Platform-agnostic.
copyTextstores text in an internal variable; OS clipboard is not used. - Subject to the same Unicode/keyboard limits as
inputText.
evaluate
Run JavaScript in the app context.
Parameters
Example
addMedia
Add media files (images, videos) to the device gallery.