Package com.microsoft.playwright.impl
Class FileChooserImpl
- java.lang.Object
-
- com.microsoft.playwright.impl.FileChooserImpl
-
- All Implemented Interfaces:
FileChooser
class FileChooserImpl extends java.lang.Object implements FileChooser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microsoft.playwright.FileChooser
FileChooser.SetFilesOptions
-
-
Field Summary
Fields Modifier and Type Field Description private ElementHandleImplelementprivate booleanisMultipleprivate PageImplpage
-
Constructor Summary
Constructors Constructor Description FileChooserImpl(PageImpl page, ElementHandleImpl element, boolean isMultiple)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementHandleelement()Returns input element associated with this file chooser.booleanisMultiple()Returns whether this file chooser accepts multiple files.Pagepage()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(java.nio.file.Path[] files, FileChooser.SetFilesOptions options)Sets the value of the file input this chooser is associated with.voidsetFiles(java.nio.file.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, wait
-
Methods inherited from interface com.microsoft.playwright.FileChooser
setFiles, setFiles, setFiles, setFiles
-
-
-
-
Field Detail
-
page
private final PageImpl page
-
element
private final ElementHandleImpl element
-
isMultiple
private final boolean isMultiple
-
-
Constructor Detail
-
FileChooserImpl
FileChooserImpl(PageImpl page, ElementHandleImpl element, boolean isMultiple)
-
-
Method Detail
-
element
public ElementHandle 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
public Page page()
Description copied from interface:FileChooserReturns page this file chooser belongs to.- Specified by:
pagein interfaceFileChooser
-
setFiles
public void setFiles(java.nio.file.Path files, FileChooser.SetFilesOptions options)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
public void setFiles(java.nio.file.Path[] files, FileChooser.SetFilesOptions options)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
public void setFiles(FilePayload files, FileChooser.SetFilesOptions options)
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
public void setFiles(FilePayload[] files, FileChooser.SetFilesOptions options)
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
-
-