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

slide Command

Purpose: Performs a sliding action with a customizable direction and percentage, allowing more precise control over gesture-based interactions.

Syntax:

slide: direction percentage; xPos; yPos

Parameters:

  • direction: left or right

  • percentage: Integer (e.g., 30) to represent the intensity of the slide

  • xPos, yPos: Coordinates representing the starting position of the slide.

Example: To perform a slide left with 30% intensity starting from coordinates (100, 200):

slide: left 30; 100; 200

This command is beneficial for testing advanced gesture interactions, such as swiping partway to reveal actions or snapping elements.

You can also combine the slide command with element IDs to make it more specific. For example, you could say:

slide 10% to the left on the element.id "big-button"
Previousswipe CommandNextwait Command

Last updated 14 days ago

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