PlaywrightCapture
PlaywrightCapture copied to clipboard
Optionally return the video of the capture
use record_video_dir in new_context -> https://playwright.dev/python/docs/api/class-browser#browser-new-context
return it as BytesIO (optional)