FileChooser
Playwright\FileChooser\FileChooserInterface
FileChooserInterface for Playwright PHP.
Methods
element()
mixedReturns input element associated with this file chooser.
function element(): mixed
isMultiple()
boolReturns whether this file chooser accepts multiple files.
function isMultiple(): bool
page()
PageInterfaceReturns page this file chooser belongs to.
function page(): PageInterface
setFiles()
voidSets 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.
function setFiles(string|array $files, array|SetFilesOptions $options = []): void