From 61fc1969611cff52382cd0b09019bc8867916282 Mon Sep 17 00:00:00 2001
From: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Date: Sat, 22 Mar 2025 10:11:29 +0000
Subject: [PATCH] feat(roll): roll to ToT Playwright (22-03-25)
---
dotnet/docs/api/class-locator.mdx | 4 ++--
java/docs/api/class-locator.mdx | 4 ++--
nodejs/docs/api/class-locator.mdx | 4 ++--
nodejs/docs/test-global-setup-teardown.mdx | 2 +-
python/docs/api/class-locator.mdx | 4 ++--
5 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/dotnet/docs/api/class-locator.mdx b/dotnet/docs/api/class-locator.mdx
index d2aa1d006d0..d6d717a3844 100644
--- a/dotnet/docs/api/class-locator.mdx
+++ b/dotnet/docs/api/class-locator.mdx
@@ -669,7 +669,7 @@ Execute JavaScript code in the page, taking the matching element as an argument.
- `options` `LocatorEvaluateOptions?` *(optional)*
- `Timeout` [float]? *(optional)*#
- Maximum time in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can be changed by using the [BrowserContext.SetDefaultTimeout()](/api/class-browsercontext.mdx#browser-context-set-default-timeout) or [Page.SetDefaultTimeout()](/api/class-page.mdx#page-set-default-timeout) methods.
+ 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.
**Returns**
- [object]#
@@ -740,7 +740,7 @@ await Locator.EvaluateHandleAsync(expression, arg, options);
- `options` `LocatorEvaluateHandleOptions?` *(optional)*
- `Timeout` [float]? *(optional)*#
- Maximum time in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can be changed by using the [BrowserContext.SetDefaultTimeout()](/api/class-browsercontext.mdx#browser-context-set-default-timeout) or [Page.SetDefaultTimeout()](/api/class-page.mdx#page-set-default-timeout) methods.
+ 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.
**Returns**
- [JSHandle]#
diff --git a/java/docs/api/class-locator.mdx b/java/docs/api/class-locator.mdx
index 81c0b2f01b5..79dc86193b9 100644
--- a/java/docs/api/class-locator.mdx
+++ b/java/docs/api/class-locator.mdx
@@ -666,7 +666,7 @@ Execute JavaScript code in the page, taking the matching element as an argument.
- `options` `Locator.EvaluateOptions` *(optional)*
- `setTimeout` [double] *(optional)*#
- Maximum time in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can be changed by using the [BrowserContext.setDefaultTimeout()](/api/class-browsercontext.mdx#browser-context-set-default-timeout) or [Page.setDefaultTimeout()](/api/class-page.mdx#page-set-default-timeout) methods.
+ 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.
**Returns**
- [Object]#
@@ -738,7 +738,7 @@ Locator.evaluateHandle(expression, arg, options);
- `options` `Locator.EvaluateHandleOptions` *(optional)*
- `setTimeout` [double] *(optional)*#
- Maximum time in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can be changed by using the [BrowserContext.setDefaultTimeout()](/api/class-browsercontext.mdx#browser-context-set-default-timeout) or [Page.setDefaultTimeout()](/api/class-page.mdx#page-set-default-timeout) methods.
+ 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.
**Returns**
- [JSHandle]#
diff --git a/nodejs/docs/api/class-locator.mdx b/nodejs/docs/api/class-locator.mdx
index 37b8e05be41..2aa1639ab24 100644
--- a/nodejs/docs/api/class-locator.mdx
+++ b/nodejs/docs/api/class-locator.mdx
@@ -667,7 +667,7 @@ Execute JavaScript code in the page, taking the matching element as an argument.
- `options` [Object] *(optional)*
- `timeout` [number] *(optional)*#
- Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout` option in the config, or by using the [browserContext.setDefaultTimeout()](/api/class-browsercontext.mdx#browser-context-set-default-timeout) or [page.setDefaultTimeout()](/api/class-page.mdx#page-set-default-timeout) methods.
+ 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.
**Returns**
- [Promise]<[Serializable]>#
@@ -739,7 +739,7 @@ await locator.evaluateHandle(pageFunction, arg, options);
- `options` [Object] *(optional)*
- `timeout` [number] *(optional)*#
- Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout` option in the config, or by using the [browserContext.setDefaultTimeout()](/api/class-browsercontext.mdx#browser-context-set-default-timeout) or [page.setDefaultTimeout()](/api/class-page.mdx#page-set-default-timeout) methods.
+ 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.
**Returns**
- [Promise]<[JSHandle]>#
diff --git a/nodejs/docs/test-global-setup-teardown.mdx b/nodejs/docs/test-global-setup-teardown.mdx
index f6205368e97..25bee5cf34e 100644
--- a/nodejs/docs/test-global-setup-teardown.mdx
+++ b/nodejs/docs/test-global-setup-teardown.mdx
@@ -142,7 +142,7 @@ Similarly, use `globalTeardown` to run something once after all the tests. Alter
Beware of `globalSetup` and `globalTeardown` caveats:
- These methods will not produce traces or artifacts unless explictly enabled, as described in [Capturing trace of failures during global setup](#capturing-trace-of-failures-during-global-setup).
-- Options sush as `headless` or `testIdAttribute` specified in the config file are not applied,
+- Options such as `headless` or `testIdAttribute` specified in the config file are not applied.
- An uncaught exception thrown in `globalSetup` will prevent Playwright from running tests, and no test results will appear in reporters.
Consider using [project dependencies](#option-1-project-dependencies) to produce traces, artifacts, respect config options and get test results in reporters even in case of a setup failure.
diff --git a/python/docs/api/class-locator.mdx b/python/docs/api/class-locator.mdx
index e8cb9d202c8..34c8b4cfd76 100644
--- a/python/docs/api/class-locator.mdx
+++ b/python/docs/api/class-locator.mdx
@@ -926,7 +926,7 @@ Execute JavaScript code in the page, taking the matching element as an argument.
Optional argument to pass to [expression](/api/class-locator.mdx#locator-evaluate-option-expression).
- `timeout` [float] *(optional)*#
- Maximum time in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can be changed by using the [browser_context.set_default_timeout()](/api/class-browsercontext.mdx#browser-context-set-default-timeout) or [page.set_default_timeout()](/api/class-page.mdx#page-set-default-timeout) methods.
+ 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.
**Returns**
- [Dict]#
@@ -1018,7 +1018,7 @@ locator.evaluate_handle(expression, **kwargs)
Optional argument to pass to [expression](/api/class-locator.mdx#locator-evaluate-handle-option-expression).
- `timeout` [float] *(optional)*#
- Maximum time in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can be changed by using the [browser_context.set_default_timeout()](/api/class-browsercontext.mdx#browser-context-set-default-timeout) or [page.set_default_timeout()](/api/class-page.mdx#page-set-default-timeout) methods.
+ 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.
**Returns**
- [JSHandle]#