docs(api): clarify “file chooser” meaning (#7534)

Co-authored-by: Mathias Bynens <mathias@qiwi.be>
This commit is contained in:
Zoltan Boros 2021-09-01 09:51:09 +02:00 committed by GitHub
parent 44b22bbc26
commit 930bff5e52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2756,6 +2756,8 @@ await fileChooser.accept(['/tmp/myfile.pdf']);
> **NOTE** This must be called _before_ the file chooser is launched. It will not return a currently active file chooser.
> **NOTE** “File picker” refers to the operating systems file selection UI that lets you browse to a folder and select file(s) to be shared with the web app. Its not the “Save file” dialog.
#### page.waitForFunction(pageFunction[, options[, ...args]])
- `pageFunction` <[function]|[string]> Function to be evaluated in browser context
@ -3437,7 +3439,7 @@ Only one trace can be active at a time per browser.
[FileChooser] objects are returned via the ['page.waitForFileChooser'](#pagewaitforfilechooseroptions) method.
File choosers let you react to the page requesting for a file.
File choosers let you react to the page requesting for file(s) to be loaded by the web app. (This file chooser does not cover the “Save file” dialog.)
An example of using [FileChooser]: