Skip to main content

GptDriver

Constructor

AI commands

execute

Execute a natural language instruction on the current screen.

assert

Verify a condition without taking action. Throws on failure.

extract

Extract information from the current screen.

Session URL

The SDK creates a session URL for each test run, accessible via:
  • gptDriver.sessionURL: public property
  • onSessionCreated callback: for real-time access
  • XCTest Attachments: saved as a .webloc file in test results
  • OS Logs: logged at .notice level

Retrieving in CI

The session URL is saved as an XCTest attachment named GPTDriver Session URL Link with lifetime .keepAlways. Extract it from the .xcresult bundle in your CI pipeline.