Package com.microsoft.playwright.impl
Class FileChooserImpl
java.lang.Object
com.microsoft.playwright.impl.FileChooserImpl
- All Implemented Interfaces:
FileChooser
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.microsoft.playwright.FileChooser
FileChooser.SetFilesOptions -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ElementHandleImplprivate final booleanprivate final PageImpl -
Constructor Summary
ConstructorsConstructorDescriptionFileChooserImpl(PageImpl page, ElementHandleImpl element, boolean isMultiple) -
Method Summary
Modifier and TypeMethodDescriptionelement()Returns input element associated with this file chooser.booleanReturns whether this file chooser accepts multiple files.page()Returns page this file chooser belongs to.voidsetFiles(FilePayload[] files, FileChooser.SetFilesOptions options) Sets the value of the file input this chooser is associated with.voidsetFiles(FilePayload files, FileChooser.SetFilesOptions options) Sets the value of the file input this chooser is associated with.voidsetFiles(Path[] files, FileChooser.SetFilesOptions options) Sets the value of the file input this chooser is associated with.voidsetFiles(Path files, FileChooser.SetFilesOptions options) Sets the value of the file input this chooser is associated with.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.playwright.FileChooser
setFiles, setFiles, setFiles, setFiles
-
Field Details
-
page
-
element
-
isMultiple
private final boolean isMultiple
-
-
Constructor Details
-
FileChooserImpl
FileChooserImpl(PageImpl page, ElementHandleImpl element, boolean isMultiple)
-
-
Method Details
-
element
Description copied from interface:FileChooserReturns input element associated with this file chooser.- Specified by:
elementin interfaceFileChooser
-
isMultiple
public boolean isMultiple()Description copied from interface:FileChooserReturns whether this file chooser accepts multiple files.- Specified by:
isMultiplein interfaceFileChooser
-
page
Description copied from interface:FileChooserReturns page this file chooser belongs to.- Specified by:
pagein interfaceFileChooser
-
setFiles
Description copied from interface:FileChooserSets the value of the file input this chooser is associated with. If some of thefilePathsare relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files.- Specified by:
setFilesin interfaceFileChooser
-
setFiles
Description copied from interface:FileChooserSets the value of the file input this chooser is associated with. If some of thefilePathsare relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files.- Specified by:
setFilesin interfaceFileChooser
-
setFiles
Description copied from interface:FileChooserSets the value of the file input this chooser is associated with. If some of thefilePathsare relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files.- Specified by:
setFilesin interfaceFileChooser
-
setFiles
Description copied from interface:FileChooserSets the value of the file input this chooser is associated with. If some of thefilePathsare relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files.- Specified by:
setFilesin interfaceFileChooser
-