docs: add upload keyword to filechooser (#1496)

This commit is contained in:
Max Schmitt 2020-03-24 03:47:29 +01:00 коммит произвёл GitHub
Родитель bfb24e6f55
Коммит 5a93872063
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -734,7 +734,7 @@ Emitted when the JavaScript [`DOMContentLoaded`](https://developer.mozilla.org/e
- `element` <[ElementHandle]> handle to the input element that was clicked
- `multiple` <[boolean]> Whether file chooser allow for [multiple](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#attr-multiple) file selection.
Emitted when a file chooser is supposed to appear, such as after clicking the `<input type=file>`. Playwright can respond to it via setting the input files using [`elementHandle.setInputFiles`](#elementhandlesetinputfilesfiles).
Emitted when a file chooser is supposed to appear, such as after clicking the `<input type=file>`. Playwright can respond to it via setting the input files using [`elementHandle.setInputFiles`](#elementhandlesetinputfilesfiles) which can be uploaded in the end.
```js
page.on('filechooser', async ({element, multiple}) => {