From d78d337e2973d3ea51e6bc7411fe40ceb3d8ad67 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Mon, 25 Jan 2021 13:40:19 -0800 Subject: [PATCH] feat(fill): make fill work when targeting elements inside the label (#5143) --- docs/src/api/class-elementhandle.md | 7 ++++--- docs/src/api/class-frame.md | 8 ++++---- docs/src/api/class-page.md | 8 ++++---- src/server/injected/injectedScript.ts | 8 ++++++++ test/page-fill.spec.ts | 12 ++++++++++++ types/types.d.ts | 20 ++++++++++++-------- 6 files changed, 44 insertions(+), 19 deletions(-) diff --git a/docs/src/api/class-elementhandle.md b/docs/src/api/class-elementhandle.md index ef669e663d..5d6307f344 100644 --- a/docs/src/api/class-elementhandle.md +++ b/docs/src/api/class-elementhandle.md @@ -363,9 +363,10 @@ Optional event-specific initialization properties. ## async method: ElementHandle.fill -This method waits for [actionability](./actionability.md) checks, focuses the element, fills it and triggers an `input` -event after filling. If the element is not an ``, ``); await page.fill('text=Fill me', 'some value'); diff --git a/types/types.d.ts b/types/types.d.ts index 4bc92faf94..0bb8e48605 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -1668,9 +1668,10 @@ export interface Page { /** * This method waits for an element matching `selector`, waits for [actionability](https://playwright.dev/docs/actionability) checks, focuses the - * element, fills it and triggers an `input` event after filling. If the element matching `selector` is not an ``, - * `