Class DownloadProgress

java.lang.Object
org.openqa.selenium.devtools.v138.browser.model.DownloadProgress

@Beta public class DownloadProgress extends Object
Fired when download makes progress. Last call has |done| == true.
  • Constructor Details

  • Method Details

    • getGuid

      public String getGuid()
      Global unique identifier of the download.
    • getTotalBytes

      public Number getTotalBytes()
      Total expected bytes to download.
    • getReceivedBytes

      public Number getReceivedBytes()
      Total bytes received.
    • getState

      public DownloadProgress.State getState()
      Download status.
    • getFilePath

      @Beta public Optional<String> getFilePath()
      If download is "completed", provides the path of the downloaded file. Depending on the platform, it is not guaranteed to be set, nor the file is guaranteed to exist.