docs: clarify locator.evaluate{,Handle} timeout option (#35319)

This commit is contained in:
Dmitry Gozman 2025-03-21 20:09:31 +00:00 committed by GitHub
parent 8eea065aeb
commit b3d19e2f80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 20 additions and 4 deletions

View File

@ -883,11 +883,19 @@ If [`param: expression`] throws or rejects, this method throws.
Optional argument to pass to [`param: expression`].
### option: Locator.evaluate.timeout = %%-input-timeout-%%
### option: Locator.evaluate.timeout
* since: v1.14
* langs: python, java, csharp
- `timeout` <[float]>
### option: Locator.evaluate.timeout = %%-input-timeout-js-%%
Maximum time in milliseconds to wait for the locator before evaluating. Note that after locator is resolved, evaluation itself is not limited by the timeout. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
### option: Locator.evaluate.timeout
* since: v1.14
* langs: js
- `timeout` <[float]>
Maximum time in milliseconds to wait for the locator before evaluating. Note that after locator is resolved, evaluation itself is not limited by the timeout. Defaults to `0` - no timeout.
## async method: Locator.evaluateAll
* since: v1.14
@ -972,11 +980,19 @@ See [`method: Page.evaluateHandle`] for more details.
Optional argument to pass to [`param: expression`].
### option: Locator.evaluateHandle.timeout = %%-input-timeout-%%
### option: Locator.evaluateHandle.timeout
* since: v1.14
* langs: python, java, csharp
- `timeout` <[float]>
### option: Locator.evaluateHandle.timeout = %%-input-timeout-js-%%
Maximum time in milliseconds to wait for the locator before evaluating. Note that after locator is resolved, evaluation itself is not limited by the timeout. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
### option: Locator.evaluateHandle.timeout
* since: v1.14
* langs: js
- `timeout` <[float]>
Maximum time in milliseconds to wait for the locator before evaluating. Note that after locator is resolved, evaluation itself is not limited by the timeout. Defaults to `0` - no timeout.
## async method: Locator.fill
* since: v1.14