Class VideoImpl

java.lang.Object
com.microsoft.playwright.impl.VideoImpl
All Implemented Interfaces:
Video

class VideoImpl extends Object implements Video
  • Field Details

  • Constructor Details

  • Method Details

    • setArtifact

      void setArtifact(ArtifactImpl artifact)
    • waitForArtifact

      private ArtifactImpl waitForArtifact()
    • delete

      public void delete()
      Description copied from interface: Video
      Deletes the video file. Will wait for the video to finish if necessary.
      Specified by:
      delete in interface Video
    • path

      public Path path()
      Description copied from interface: Video
      Returns the file system path this video will be recorded to. The video is guaranteed to be written to the filesystem upon closing the browser context. This method throws when connected remotely.
      Specified by:
      path in interface Video
    • saveAs

      public void saveAs(Path path)
      Description copied from interface: Video
      Saves the video to a user-specified path. It is safe to call this method while the video is still in progress, or after the page has closed. This method waits until the page is closed and the video is fully saved.
      Specified by:
      saveAs in interface Video
      Parameters:
      path - Path where the video should be saved.