Version: Next


FileChooser objects are dispatched by the page in the page.on("filechooser") event.

with page.expect_file_chooser() as fc_info:"upload")
file_chooser = fc_info.value


Returns input element associated with this file chooser.


Returns whether this file chooser accepts multiple files.

Returns page this file chooser belongs to.

file_chooser.set_files(files, **kwargs)#

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 the current working directory. For empty array, clears the selected files.