@testdriverai/mcp 7.11.260-test → 7.11.262-canary

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -170,10 +170,6 @@ describe('My machine', () => {
170
170
 
171
171
  On a Windows machine, also pass `os: 'windows'`.
172
172
 
173
- <Warning>
174
- Run these tests with the `CI` environment variable unset. When `CI` is set, TestDriver always requests a new sandbox and ignores `sandboxId`, so the test waits for a runner that never connects.
175
- </Warning>
176
-
177
173
  Run the test from any computer:
178
174
 
179
175
  ```bash
@@ -161,10 +161,6 @@ Or for a whole run:
161
161
  TD_NO_CACHE=true npx vitest run
162
162
  ```
163
163
 
164
- <Warning>
165
- `cache: { enabled: false }` doesn't turn the cache off. Use `cache: false` or `TD_NO_CACHE=true`.
166
- </Warning>
167
-
168
164
  ## Inspect a result
169
165
 
170
166
  Read the cache details from the element that `find()` returns:
@@ -196,7 +196,7 @@ These options control the element cache, which reuses element positions from a p
196
196
  <ParamField path="cache" type="boolean | object" default="true">
197
197
  Pass `false` to turn the cache off, or an object to set the match thresholds.
198
198
 
199
- `cache: { enabled: false }` does not turn the cache off. Use `cache: false` or `TD_NO_CACHE=true`.
199
+ `cache: { enabled: false }` and `TD_NO_CACHE=true` also turn it off.
200
200
 
201
201
  <Expandable title="advanced config">
202
202
  <ParamField path="thresholds" type="object">
@@ -68,10 +68,6 @@ None. `parse()` analyzes the screen as it is when you call it.
68
68
  </Expandable>
69
69
  </ResponseField>
70
70
 
71
- <Warning>
72
- `interactivity` is a boolean, although the TypeScript types in `sdk.d.ts` declare it as a string. Compare it with `true`, not with a string like `'clickable'`.
73
- </Warning>
74
-
75
71
  ## Errors
76
72
 
77
73
  `parse()` throws if the screen analysis fails. The error message comes from the TestDriver API.
@@ -76,17 +76,13 @@ Each automatic screenshot is named:
76
76
  The description comes from:
77
77
 
78
78
  - The description passed to `find()` or `findAll()`.
79
- - The first 20 characters typed by `type()`.
79
+ - The first 20 characters typed by `type()`, unless you pass `secret: true`.
80
80
  - The keys passed to `pressKeys()`, joined with `+`.
81
81
  - The direction passed to `scroll()`.
82
82
  - The first 30 characters of the text passed to `assert()` or `extract()`.
83
83
 
84
84
  TestDriver lowercases it, drops anything other than letters, digits, spaces, and hyphens, turns spaces into hyphens, and keeps the first 30 characters.
85
85
 
86
- <Warning>
87
- The description for `type()` uses the typed text even when you pass `secret: true`. Don't turn on `autoScreenshots` for tests that type passwords, or the start of the password ends up in a file name.
88
- </Warning>
89
-
90
86
  ### Example
91
87
 
92
88
  This test:
@@ -44,11 +44,9 @@ With `secret: true`, TestDriver replaces the text with `****`:
44
44
  - In the SDK's console output.
45
45
  - In the record of the action that TestDriver stores for the test run.
46
46
 
47
- The text is still typed into the sandbox, so `secret: true` can't hide what the screen shows. If the field displays its contents, the value appears in the [Dashcam](/dashcam) recording and in screenshots. Password fields usually mask what you type, but plain text fields don't.
47
+ With [`autoScreenshots`](/options#param-auto-screenshots) on, the typed text is also left out of screenshot file names.
48
48
 
49
- <Warning>
50
- With [`autoScreenshots`](/options#param-auto-screenshots) on, screenshot file names include the first characters of the typed text, even when `secret` is `true`. Leave `autoScreenshots` off in tests that type secrets.
51
- </Warning>
49
+ The text is still typed into the sandbox, so `secret: true` can't hide what the screen shows. If the field displays its contents, the value appears in the [Dashcam](/dashcam) recording and in screenshots. Password fields usually mask what you type, but plain text fields don't.
52
50
 
53
51
  ## Store secrets locally
54
52
 
@@ -43,7 +43,7 @@ Self-hosted teams that use their own AI key can't use TestDriver's managed Windo
43
43
  Self-hosted teams send AI requests through their own Google Gemini key. Add it on the [API keys page](https://console.testdriver.ai/team/api-keys) under **Business API Keys**.
44
44
 
45
45
  <Note>
46
- The key must be a [Gemini Enterprise Agent Platform express mode API key](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/start/api-keys?usertype=expressmode). Google AI Studio keys aren't supported.
46
+ Create a Gemini API key in the Google Cloud console under [APIs & Services > Credentials](https://console.cloud.google.com/apis/credentials), then add it on the API keys page. The key must be [bound to a service account](https://cloud.google.com/docs/authentication/api-keys#create).
47
47
  </Note>
48
48
 
49
49
  The same page has optional fields for an OpenRouter key and an E2B key.
@@ -45,7 +45,7 @@ Self-hosted teams that use their own AI key can't use TestDriver's managed Windo
45
45
  Self-hosted teams send AI requests through their own Google Gemini key. Add it on the [API keys page](https://console.testdriver.ai/team/api-keys) under **Business API Keys**.
46
46
 
47
47
  <Note>
48
- The key must be a [Gemini Enterprise Agent Platform express mode API key](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/start/api-keys?usertype=expressmode). Google AI Studio keys aren't supported.
48
+ Create a Gemini API key in the Google Cloud console under [APIs & Services > Credentials](https://console.cloud.google.com/apis/credentials), then add it on the API keys page. The key must be [bound to a service account](https://cloud.google.com/docs/authentication/api-keys#create).
49
49
  </Note>
50
50
 
51
51
  The same page has optional fields for an OpenRouter key and an E2B key.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testdriverai/mcp",
3
- "version": "7.11.260-test",
3
+ "version": "7.11.262-canary",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "sdk.js",
6
6
  "types": "sdk.d.ts",