setClipboard
Set text directly to Maestro's internal clipboard for re-use in tests or scripts. This complements copyTextFrom which copies text from UI elements.
Usage Example
appId: com.example.app
---
- launchApp
- tapOn:
id: "emailField"
- setClipboard: "[email protected]"
- pasteTextappId: com.example.app
---
- launchApp
- setClipboard: ${'user' + Math.floor(Math.random() * 1000) + '@example.com'}
- tapOn:
id: "emailField"
- pasteTextRelated Commands
Last updated
Was this helpful?
