|
| pathlib.Path | path (self) |
| |
| None | save_as (self, typing.Union[str, pathlib.Path] path) |
| |
| None | delete (self) |
| |
| None | __init__ (self, Any impl_obj) |
| |
|
str | __str__ (self) |
| |
| None | on (self, Any event, Any f) |
| |
| None | once (self, Any event, Any f) |
| |
| None | remove_listener (self, Any event, Any f) |
| |
|
str | __repr__ (self) |
| |
|
|
Callable[..., None] | _wrap_handler (self, Union[Callable[..., Any], Any] handler) |
| |
|
| _loop |
| |
|
| _impl_obj |
| |
◆ delete()
| None playwright.async_api._generated.Video.delete |
( |
|
self | ) |
|
Video.delete
Deletes the video file. Will wait for the video to finish if necessary.
◆ path()
| pathlib.Path playwright.async_api._generated.Video.path |
( |
|
self | ) |
|
Video.path
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.
Returns
-------
pathlib.Path
◆ save_as()
| None playwright.async_api._generated.Video.save_as |
( |
|
self, |
|
|
typing.Union[str, pathlib.Path] |
path |
|
) |
| |
Video.save_as
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.
Parameters
----------
path : Union[pathlib.Path, str]
Path where the video should be saved.
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/playwright/async_api/_generated.py