GPT Driver User Guide
GPT Driver User Guide
GPT Driver User Guide
  • Getting Started
    • πŸš€Getting Started
    • πŸ”ƒUploading a Build File
    • πŸ§™β€β™‚οΈCreating Tests
      • Commands
        • Tap Command
        • Type Command
        • scroll Command
        • scrollUntilVisible Command
        • swipe Command
        • slide Command
        • wait Command
        • assertVisible Command
        • openLink Command
        • pressBackButton Command
        • launchApp Command
        • restartApp Command
      • πŸ‘οΈwithVision: Instructions
      • 🧠AI Instructions
    • 🏁Executing Tests
  • ☎️Device Configuration
  • βš™οΈUnder the Hood
  • Getting Around
    • ✏️Test Editor
    • πŸ›°οΈTest Overview
    • πŸ…Test Reports
    • ⏺️Test Recordings
    • πŸ‘€Settings
  • Best Practices
    • πŸ§‘β€πŸ’»API Documentation
    • Versioning
    • ↗️Templates
    • πŸ–‡οΈTest Dependencies & Prompt References
    • πŸ”—Deep Links
    • πŸ“§Email Verification
    • πŸ“‘Network Calls
    • πŸͺ‘Parameterized Strings
    • πŸ“Changing Device Location
    • πŸͺΆConditional Steps
    • 🐦Nested Steps
    • ⌚Smart Caching
    • πŸ—£οΈEnv. Variables
    • πŸ’―Bulk Step Testing for Robustness
    • πŸ“–Exact Text Assertions
    • πŸ’¬Auto-grant Permissions
  • πŸ§ͺMocking Network Data
  • 🌎Localization Testing
  • Code Generation
  • ❔FAQs
Powered by GitBook
On this page
  1. Best Practices

Nested Steps

Our enhanced prompt editor allows you to create nested steps. This page will showcase use cases for adopting this approach.

Example 1: I wish to execute multiple actions in a single line.

1. Check that you are currently on a screen featuring x, y, and z:
    1.1. If so, tap on the 'a' text
    1.2. If so, tap on the 'b' text

Example 2: I want to verify a condition before proceeding to the next steps.

1. Check that you are currently on a screen featuring x, y, and z:
    1.1. If not, do 'a' and continue to step 2.
    1.2. If so, continue to step 2.

Example 3: I intend to pass the test if the following assertions are satisfied.

1. Check that you are on a screen featuring the following. If so, succeed the test.
    1.1. x
    1.2. y
    1.3. z
PreviousConditional StepsNextSmart Caching

Last updated 11 months ago

🐦