Constructor
Self healing
By default, allfind_element calls are wrapped with self-healing. When an element can’t be found, the SDK attempts to resolve it automatically.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
API reference for the MobileBoost Python Appium SDK
from gptdriver_client import GptDriver
gptd = GptDriver(
api_key="YOUR_API_KEY",
platform="android",
device_name="Pixel 7",
platform_version="15.0",
)
| Parameter | Type | Description |
|---|---|---|
api_key | str | Your GPT Driver API key |
platform | str | "android" or "ios" (when the SDK starts its own session) |
device_name | str | Device name (when the SDK starts its own session) |
platform_version | str | Platform version (when the SDK starts its own session) |
driver | WebDriver | An existing Appium driver to attach to instead of starting a new session |
enable_self_healing | bool | Enable/disable self healing globally (default: True) |
find_element calls are wrapped with self-healing. When an element can’t be found, the SDK attempts to resolve it automatically.
# Self healing is automatic for all find_element calls
el = gptd.find_element(By.ID, "login-button")
gptd = GptDriver(api_key="...", enable_self_healing=False)
gptd.execute("Tap the login button and wait for the home screen")
gptd.assert_condition("The home screen is displayed with a welcome message")
gptd.set_session_status("success") # or "failed"
| 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) |
