Skip to main content
The TypeScript SDK exposes a single GptDriver class. Import the default export and construct it with your WebdriverIO browser:

Constructor options

AI commands

aiExecute

Execute a natural-language instruction on the current screen. Optionally pass an appiumHandler to run native Appium code first and only fall back to AI if it throws (see Deterministic execution).

assert

Verify a condition without taking any action. Resolves if the condition holds, throws otherwise.

assertBulk

Check multiple conditions in one call. Throws if any condition fails.

checkBulk

Check multiple conditions in one call. Returns an object with a true / false result per condition instead of throwing.

extract

Extract information from the current screen. Returns an object keyed by the values you asked for.

openDeepLinkUrl

Open a deep link in the app under test.

Session lifecycle

The session starts automatically on the first AI command. Report the outcome at the end of a test so it is recorded on the dashboard.

Caching

Caching reduces AI calls for repetitive executions. Set a default in the constructor, or override per call.