When browser context is created with the recordVideo
option, each page has a video object associated with it.
print(await page.video.path())
Methods deleteAdded in: v1.11 video.delete
Deletes the video file. Will wait for the video to finish if necessary.
Usage
Returns
pathAdded before v1.9 video.pathReturns 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.
Usage
Returns
save_asAdded in: v1.11 video.save_asSaves 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.
Usage
Arguments
path
Union[str, pathlib.Path]#
Path where the video should be saved.
Returns
Previous
Tracing
Next
WebError
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4