Class DownloadedFile

java.lang.Object
com.codeborne.selenide.files.DownloadedFile

@ParametersAreNonnullByDefault public class DownloadedFile extends Object
  • Constructor Details

    • DownloadedFile

      public DownloadedFile(File file, Map<String,String> headers)
      Parameters:
      file - the downloaded file
      headers - map of http headers. NB! Map keys (header names) are LOWER CASE!
  • Method Details

    • getFile

      @CheckReturnValue @Nonnull public File getFile()
    • hasContentDispositionHeader

      @CheckReturnValue public boolean hasContentDispositionHeader()
    • getContentType

      @Nullable public String getContentType()
    • toString

      public String toString()
      Overrides:
      toString in class Object