{% embed url="https://player.vimeo.com/video/779079600?h=0b1fec8f26" %}
This flow demonstrates how Maestro can automate saving a contact with name, phone number & email of a person.
Some notable interactions in this Flow:
- Clicking on any element using: tapOn
- Random data input using: inputRandomPersonName,inputRandomNumber & inputRandomEmail
- Android back navigation using: back
{% code title="contacts.yaml" %}
appId: com.android.contacts
---
- launchApp
- tapOn: "Create new contact"
- tapOn: "First name"
- inputRandomPersonName
- tapOn: "Last name"
- inputRandomPersonName
- tapOn: "Phone"
- inputRandomNumber:
length: 10
- back
- tapOn: "Email"
- inputRandomEmail
- tapOn: "Save"
{% endcode %}
- Install maestro in your system. (Installation instructions)
- Copy the YAML flow from below in your system and save it as contacts.yaml
- Start android emulator in your system
- Run this command from your terminal:
maestro test contacts.yaml