Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 0 additions & 48 deletions docs/src/api/class-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -710,54 +710,6 @@ current working directory.

Raw CSS content to be injected into frame.

## async method: Page.agent
* since: v1.58
* langs: js
- returns: <[PageAgent]>

Initialize page agent with the llm provider and cache.

### option: Page.agent.cache
* since: v1.58
- `cache` <[Object]>
- `cacheFile` ?<[string]> Cache file to use/generate code for performed actions into. Cache is not used if not specified (default).
- `cacheOutFile` ?<[string]> When specified, generated entries are written into the `cacheOutFile` instead of updating the `cacheFile`.

### option: Page.agent.expect
* since: v1.58
- `expect` <[Object]>
- `timeout` ?<[int]> Default timeout for expect calls in milliseconds, defaults to 5000ms.

### option: Page.agent.limits
* since: v1.58
- `limits` <[Object]>
- `maxTokens` ?<[int]> Maximum number of tokens to consume. The agentic loop will stop after input + output tokens exceed this value. Defaults to unlimited.
- `maxActions` ?<[int]> Maximum number of agentic actions to generate, defaults to 10.
- `maxActionRetries` ?<[int]> Maximum number retries per action, defaults to 3.

Limits to use for the agentic loop.

### option: Page.agent.provider
* since: v1.58
- `provider` <[Object]>
- `api` <[PageAgentAPI]<"openai"|"openai-compatible"|"anthropic"|"google">> API to use.
- `apiEndpoint` ?<[string]> Endpoint to use if different from default.
- `apiKey` <[string]> API key for the LLM provider.
- `apiTimeout` ?<[int]> Amount of time to wait for the provider to respond to each request.
- `model` <[string]> Model identifier within the provider. Required in non-cache mode.

### option: Page.agent.secrets
* since: v1.58
- `secrets` ?<[Object]<[string], [string]>>

Secrets to hide from the LLM.

### option: Page.agent.systemPrompt
* since: v1.58
- `systemPrompt` <[string]>

System prompt for the agent's loop.

## async method: Page.bringToFront
* since: v1.8

Expand Down
134 changes: 0 additions & 134 deletions docs/src/api/class-pageagent.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/src/test-api/class-fixtures.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ Given the test above, Playwright Test will set up the `page` fixture before runn

Playwright Test comes with builtin fixtures listed below, and you can add your own fixtures as well. Playwright Test also [provides options][TestOptions] to configure [`property: Fixtures.browser`], [`property: Fixtures.context`] and [`property: Fixtures.page`].

## property: Fixtures.agent
* since: v1.58
- type: <[PageAgent]>

## property: Fixtures.browser
* since: v1.10
- type: <[Browser]>
Expand Down
9 changes: 0 additions & 9 deletions docs/src/test-api/class-fullconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,6 @@ See [`property: TestConfig.reportSlowTests`].

Base directory for all relative paths used in the reporters.

## property: FullConfig.runAgents
* since: v1.58
- type: <['RunAgentsMode]<"all"|"missing"|"none">>

Whether to run LLM agent for [PageAgent]:
* "all" disregards existing cache and performs all actions via LLM
* "missing" only performs actions that don't have generated cache actions
* "none" does not talk to LLM at all, relies on the cached actions (default)

## property: FullConfig.shard
* since: v1.10
- type: <[null]|[Object]>
Expand Down
9 changes: 0 additions & 9 deletions docs/src/test-api/class-testconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,15 +515,6 @@ export default defineConfig({
});
```

## property: TestConfig.runAgents
* since: v1.58
- type: ?<['RunAgentsMode]<"all"|"missing"|"none">>

Whether to run LLM agent for [PageAgent]:
* "all" disregards existing cache and performs all actions via LLM
* "missing" only performs actions that don't have generated cache actions
* "none" does not talk to LLM at all, relies on the cached actions (default)

## property: TestConfig.shard
* since: v1.10
- type: ?<[null]|[Object]>
Expand Down
17 changes: 0 additions & 17 deletions docs/src/test-api/class-testoptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,6 @@ export default defineConfig({
});
```

## property: TestOptions.agentOptions
* since: v1.58
- type: <[Object]>
- `provider` <[Object]>
- `api` <[PageAgentAPI]<"openai"|"openai-compatible"|"anthropic"|"google">> API to use.
- `apiEndpoint` ?<[string]> Endpoint to use if different from default.
- `apiKey` <[string]> API key for the LLM provider.
- `apiTimeout` ?<[int]> Amount of time to wait for the provider to respond to each request.
- `model` <[string]> Model identifier within the provider. Required in non-cache mode.
- `cachePathTemplate` ?<[string]> Cache file template to use/generate code for performed actions into.
- `limits` <[Object]>
- `maxTokens` ?<[int]> Maximum number of tokens to consume. The agentic loop will stop after input + output tokens exceed this value. Defaults to unlimited.
- `maxActions` ?<[int]> Maximum number of agentic actions to generate, defaults to 10.
- `maxActionRetries` ?<[int]> Maximum number retries per action, defaults to 3.
- `secrets` ?<[Object]<[string], [string]>> Secrets to hide from the LLM.
- `systemPrompt` <[string]> System prompt for the agent's loop.

## property: TestOptions.baseURL = %%-context-option-baseURL-%%
* since: v1.10

Expand Down
8 changes: 0 additions & 8 deletions examples/todomvc/tests/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@ import { test as baseTest } from '@playwright/test';
export { expect } from '@playwright/test';

export const test = baseTest.extend({
agentOptions: {
provider: {
api: 'anthropic',
apiKey: process.env.AZURE_SONNET_API_KEY!,
apiEndpoint: process.env.AZURE_SONNET_ENDPOINT!,
model: 'claude-sonnet-4-5',
},
},
page: async ({ page }, use) => {
await page.goto('https://demo.playwright.dev/todomvc');
await use(page);
Expand Down
32 changes: 0 additions & 32 deletions examples/todomvc/tests/md/adding-todos.spec.md

This file was deleted.

Loading
Loading