Class FileChooserImpl

java.lang.Object
com.microsoft.playwright.impl.FileChooserImpl
All Implemented Interfaces:
FileChooser

class FileChooserImpl extends Object implements FileChooser
  • Field Details

    • page

      private final PageImpl page
    • element

      private final ElementHandleImpl element
    • isMultiple

      private final boolean isMultiple
  • Constructor Details

  • Method Details

    • element

      public ElementHandle element()
      Description copied from interface: FileChooser
      Returns input element associated with this file chooser.
      Specified by:
      element in interface FileChooser
    • isMultiple

      public boolean isMultiple()
      Description copied from interface: FileChooser
      Returns whether this file chooser accepts multiple files.
      Specified by:
      isMultiple in interface FileChooser
    • page

      public Page page()
      Description copied from interface: FileChooser
      Returns page this file chooser belongs to.
      Specified by:
      page in interface FileChooser
    • setFiles

      public void setFiles(Path files, FileChooser.SetFilesOptions options)
      Description copied from interface: FileChooser
      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 current working directory. For empty array, clears the selected files.
      Specified by:
      setFiles in interface FileChooser
    • setFiles

      public void setFiles(Path[] files, FileChooser.SetFilesOptions options)
      Description copied from interface: FileChooser
      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 current working directory. For empty array, clears the selected files.
      Specified by:
      setFiles in interface FileChooser
    • setFiles

      public void setFiles(FilePayload files, FileChooser.SetFilesOptions options)
      Description copied from interface: FileChooser
      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 current working directory. For empty array, clears the selected files.
      Specified by:
      setFiles in interface FileChooser
    • setFiles

      public void setFiles(FilePayload[] files, FileChooser.SetFilesOptions options)
      Description copied from interface: FileChooser
      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 current working directory. For empty array, clears the selected files.
      Specified by:
      setFiles in interface FileChooser