Returns input element associated with this file chooser.
Returns whether this file chooser accepts multiple files.
Returns page this file chooser belongs to.
Sets the value of the file input this chooser is associated with. 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.
File content
File type
File name
Optionaloptions: { noWaitAfter?: boolean; signal?: AbortSignal; timeout?: number }
OptionalnoWaitAfter?: booleanThis option has no effect.
Optionalsignal?: AbortSignalAllows to cancel the operation using an
AbortSignal. If the signal is aborted, the
operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
which can be changed using
browserContext.setDefaultTimeout(timeout)
or page.setDefaultTimeout(timeout); pass
timeout: 0 to disable the timeout entirely.
Optionaltimeout?: numberMaximum time in milliseconds. Defaults to 0 - no timeout. The default value can be changed via actionTimeout
option in the config, or by using the
browserContext.setDefaultTimeout(timeout)
or page.setDefaultTimeout(timeout) methods.
FileChooser objects are dispatched by the page in the page.on('filechooser') event.