Class DownloadedFile

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

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

      public File getFile()
    • hasContentDispositionHeader

      public boolean hasContentDispositionHeader()
    • getContentType

      public @Nullable String getContentType()
    • toString

      public String toString()
      Overrides:
      toString in class Object