Driver classes
The SDK provides drop-in replacements for Appium driver classes:| MobileBoost class | Extends | Platform |
|---|---|---|
GptDriverAndroid | AndroidDriver | Android |
GptDriverIOS | IOSDriver | iOS |
GptDriverAppium | AppiumDriver | Cross-platform |
Constructor options
| Parameter | Type | Description |
|---|---|---|
url | URL | Appium server URL |
options | Capabilities | Appium capabilities (must include gptdriver:apiKey) |
additionalUserContext | String | Optional context to guide AI behavior across all steps |
enableSelfHealing | Boolean | Enable/disable self healing globally (default: true) |
Self healing
By default, allfindElement and findElements calls are wrapped with self-healing. When a NoSuchElement exception is thrown, the SDK attempts to resolve it automatically.
- Java
- Python
AI commands
aiExecute
Execute a natural language instruction on the current screen.- Java
- Python
- TypeScript
aiAssert
Verify a condition without taking any action. Throws an error if the assertion fails.- Java
- Python
aiAssertBulk
Check multiple conditions in one call. Throws an error if any assertion fails.aiCheckBulk
Check multiple conditions in one call. Returns an object withtrue/false for each condition instead of throwing.
aiExtract
Extract information from the current screen. Returns an object with the extracted values.Caching
The SDK supports caching to reduce AI calls for repetitive executions:| Mode | Description |
|---|---|
NONE | No caching |
FULL_SCREEN | Cache hit only if the full screen matches a previous successful execution |
INTERACTION_REGION | Cache hit if the interaction region matches (e.g., the area around a tapped element) |

