You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/api/class-pageagent.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,12 @@ await agent.expect('"0 items" to be reported');
35
35
36
36
Expectation to assert.
37
37
38
+
### option: PageAgent.expect.timeout
39
+
* since: v1.58
40
+
-`timeout` <[float]>
41
+
42
+
Expect timeout in milliseconds. Defaults to `5000`. The default value can be changed via `expect.timeout` option in the config, or by specifying the `expect` property of the [`option: Page.agent.expect`] option. Pass `0` to disable timeout.
@@ -68,6 +74,13 @@ Task to perform using agentic loop.
68
74
* since: v1.58
69
75
-`schema` <[z.ZodSchema]>
70
76
77
+
### option: PageAgent.extract.timeout
78
+
* since: v1.58
79
+
-`timeout` <[float]>
80
+
81
+
Extract timeout in milliseconds. Defaults to `5000`. The default value can be changed via `actionTimeout` option in the config, or by using the [`method: BrowserContext.setDefaultTimeout`] or
82
+
[`method: Page.setDefaultTimeout`] methods. Pass `0` to disable timeout.
Perform timeout in milliseconds. Defaults to `5000`. The default value can be changed via `actionTimeout` option in the config, or by using the [`method: BrowserContext.setDefaultTimeout`] or
115
+
[`method: Page.setDefaultTimeout`] methods. Pass `0` to disable timeout.
// When explicit timeout is passed, constrain expect by it, in addition to regular progress abort.
1393
-
consttimeoutPromise=options.explicitTimeout!==undefined ? progress.wait(options.explicitTimeout).then(()=>{thrownewTimeoutError(`Timed out after ${options.explicitTimeout}ms`);}) : undefined;
0 commit comments