You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -745,7 +745,7 @@ Emitted when attachment is downloaded. User can access basic file operations on
745
745
-`element` <[ElementHandle]> handle to the input element that was clicked
746
746
-`multiple` <[boolean]> Whether file chooser allow for [multiple](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#attr-multiple) file selection.
747
747
748
-
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.
748
+
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-options) which can be uploaded in the end.
-`data` <[string]> Base64-encoded data **required**
2767
+
-`options` <[Object]>
2768
+
-`waitUntil` <"load"|"domcontentloaded"|"networkidle0"|"networkidle2"|"nowait"> Actions that cause navigations are waiting for those navigations to fire `domcontentloaded` by default. This behavior can be changed to either wait for another load phase or to omit the waiting altogether using `nowait`:
2769
+
-`'domcontentloaded'` - consider navigation to be finished when the `DOMContentLoaded` event is fired.
2770
+
-`'load'` - consider navigation to be finished when the `load` event is fired.
2771
+
-`'networkidle0'` - consider navigation to be finished when there are no more than 0 network connections for at least `500` ms.
2772
+
-`'networkidle2'` - consider navigation to be finished when there are no more than 2 network connections for at least `500` ms.
2773
+
-`'nowait'` - do not wait.
2774
+
-`timeout` <[number]> Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by using the [browserContext.setDefaultTimeout(timeout)](#browsercontextsetdefaulttimeouttimeout) or [page.setDefaultTimeout(timeout)](#pagesetdefaulttimeouttimeout) methods.
2767
2775
- returns: <[Promise]>
2768
2776
2769
2777
This method expects `elementHandle` to point to an [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input).
0 commit comments