Package com.microsoft.playwright.impl
Class VideoImpl
- java.lang.Object
-
- com.microsoft.playwright.impl.VideoImpl
-
-
Field Summary
Fields Modifier and Type Field Description private PageImplpageprivate WaitableResult<ArtifactImpl>waitableArtifact
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()Deletes the video file.java.nio.file.Pathpath()Returns the file system path this video will be recorded to.voidsaveAs(java.nio.file.Path path)Saves the video to a user-specified path.(package private) voidsetArtifact(ArtifactImpl artifact)private ArtifactImplwaitForArtifact()
-
-
-
Field Detail
-
page
private final PageImpl page
-
waitableArtifact
private final WaitableResult<ArtifactImpl> waitableArtifact
-
-
Constructor Detail
-
VideoImpl
VideoImpl(PageImpl page)
-
-
Method Detail
-
setArtifact
void setArtifact(ArtifactImpl artifact)
-
waitForArtifact
private ArtifactImpl waitForArtifact()
-
delete
public void delete()
Description copied from interface:VideoDeletes the video file. Will wait for the video to finish if necessary.
-
path
public java.nio.file.Path path()
Description copied from interface:VideoReturns 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.
-
saveAs
public void saveAs(java.nio.file.Path path)
Description copied from interface:VideoSaves 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.
-
-