Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(elementhandle): deprecate inputValue timeout option (#41568)

Copilot2af447df86fd
diff --git a/docs/src/api/class-elementhandle.md b/docs/src/api/class-elementhandle.md
index a14f91156a..7f3a147ccd 100644
--- a/docs/src/api/class-elementhandle.md
+++ b/docs/src/api/class-elementhandle.md
@@ -650,11 +650,10 @@ Returns `input.value` for the selected `<input>` or `<textarea>` or `<select>` e
Throws for non-input elements. However, if the element is inside the `<label>` element that has an associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), returns the value of the control.
-### option: ElementHandle.inputValue.timeout = %%-input-timeout-%%
-* since: v1.13
-
-### option: ElementHandle.inputValue.timeout = %%-input-timeout-js-%%
+### option: ElementHandle.inputValue.timeout
* since: v1.13
+* deprecated: This option is ignored. The value is returned immediately.
+- `timeout` <[float]>
## async method: ElementHandle.isChecked
* since: v1.8
diff --git a/packages/playwright-client/types/types.d.ts b/packages/playwright-client/types/types.d.ts
index 1bf5ef680f..6da20cd4fa 100644
--- a/packages/playwright-client/types/types.d.ts
+++ b/packages/playwright-client/types/types.d.ts
@@ -12989,10 +12989,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
*/
inputValue(options?: {
/**
- * 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(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
- * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
+ * @deprecated This option is ignored. The value is returned immediately.
*/
timeout?: number;
}): Promise<string>;
diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts
index 1bf5ef680f..6da20cd4fa 100644
--- a/packages/playwright-core/types/types.d.ts
+++ b/packages/playwright-core/types/types.d.ts
@@ -12989,10 +12989,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
*/
inputValue(options?: {
/**
- * 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(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
- * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
+ * @deprecated This option is ignored. The value is returned immediately.
*/
timeout?: number;
}): Promise<string>;