From 9bafc3c7ac9f6c78ade88e11684a7c0b22191631 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Tue, 30 Jun 2026 16:04:13 +0200 Subject: [PATCH] feat(elementhandle): add timeout and signal to inputValue ElementHandle.inputValue advertised a `timeout` option since v1.13, but the protocol entry in handles.yml declared no parameters, so the value was silently dropped at the wire validator and never applied. This wires it through properly and adds `signal` alongside it. Note this is a behaviour change: inputValue now honours the default timeout where before it effectively had none. Refs: https://github.com/microsoft/playwright/issues/40578 --- docs/src/api/class-elementhandle.md | 2 ++ packages/playwright-client/types/types.d.ts | 11 +++++++++++ packages/playwright-core/src/client/channels.d.ts | 8 ++++++-- packages/playwright-core/src/client/elementHandle.ts | 4 ++-- packages/playwright-core/src/protocol/validator.ts | 4 +++- packages/playwright-core/src/server/channels.d.ts | 8 ++++++-- packages/playwright-core/types/types.d.ts | 11 +++++++++++ packages/protocol/spec/handles.yml | 2 ++ 8 files changed, 43 insertions(+), 7 deletions(-) diff --git a/docs/src/api/class-elementhandle.md b/docs/src/api/class-elementhandle.md index a14f91156a7de..a411154541ed9 100644 --- a/docs/src/api/class-elementhandle.md +++ b/docs/src/api/class-elementhandle.md @@ -656,6 +656,8 @@ Throws for non-input elements. However, if the element is inside the `