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
    • πŸ”—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
  • ❔FAQs
Powered by GitBook
On this page
  1. Getting Started
  2. Creating Tests
  3. Commands

assertVisible Command

Syntax

assertVisible.id: "element id"

or

assertVisible.text: "text"

Example:

assertVisible.id: "com.app.ui/loginBtn"

or

assertVisible.text: "Log in"

Note: The assertVisible.id and assertVisible.text commands verify whether an element with the specified ID or a specific text is visible on the screen.

In the first example above, GPT Driver will check if an element with the ID com.app.ui/loginBtn is visible. If the element is not visible, GPT Driver will fail the test. If it is visible, GPT Driver will proceed to the next step. On the second example, GPT Driver will then check if the specific text Log in is visible

Previouswait CommandNextopenLink Command

Last updated 2 months ago

πŸ§™β€β™‚οΈ