Playwright::FileChooser
FileChooser objects are dispatched by the page in the page.on('filechooser') event.
Instance methods
set_files(file : FileChooser::FilePayload, options : SetFilesOptions | Nil)
SourceSets 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.
set_files(file : FileChooser::FilePayload)
Source