Maestro by mobile.dev
Search
⌃K
What is Maestro?
GitHub Repo
Getting Started
Installing Maestro
Build and Install your App
Run a Sample Flow
Writing Your First Flow
Maestro Studio
Running Flows on CI
Platform Support
Supported Platforms
Android - Views
Android - Jetpack Compose
iOS - UIKit
iOS - SwiftUI
React Native
Flutter
Web Views
Examples
Android contacts flow automation
Facebook signup flow automation
Advanced: Wikipedia Android
CLI
Cloud
Test Suites & Reports
Tags
Recording Your Flow
Continuous Mode
View Hierarchy
API Reference
Commands
Configuration
Advanced
Nested Flows
Wait
Loops
Conditions
Parameters & Constants
JavaScript
Run JavaScript
Outputs
Access element text
Make HTTP(s) requests
Experimental
Specify a Device
Configuring Permissions
Detect Maestro in your App
Troubleshooting
Known Issues
Bug Report
Rollback Maestro
Powered By GitBook

Access element text

In order to access text of UI elements, use copyTextFrom command. The text can then be accessed via maestro.copiedText variable:
- copyTextFrom: My Field
- inputText: ${'Hello ' + maestro.copiedText}
Previous
Outputs
Next
Make HTTP(s) requests
Last modified 3mo ago
Copy link