From 091b84faa38fe5a9a501f85e6f607e4e0472ff6d Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 6 Jun 2024 23:27:13 +0200 Subject: [PATCH] feedback 1 --- docs/src/api/class-elementhandle.md | 2 +- docs/src/api/class-locator.md | 2 +- docs/src/api/class-page.md | 2 +- .../src/client/elementHandle.ts | 6 ++-- packages/playwright-core/src/server/dom.ts | 4 +-- packages/playwright-core/types/types.d.ts | 12 +++---- tests/page/page-set-input-files.spec.ts | 35 +++++++++++++------ 7 files changed, 38 insertions(+), 25 deletions(-) diff --git a/docs/src/api/class-elementhandle.md b/docs/src/api/class-elementhandle.md index faeedb4a13305a..24b8bb2b6f6d01 100644 --- a/docs/src/api/class-elementhandle.md +++ b/docs/src/api/class-elementhandle.md @@ -953,7 +953,7 @@ When all steps combined have not finished during the specified [`option: timeout Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files. -In order to upload a directory (`[webkitdirectory]`) pass the path to the directory. +For inputs with a `[webkitdirectory]` attribute, only a single directory path is supported. This method expects [ElementHandle] to point to an [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). However, if the element is inside the `