class Playwright::Browser::NewContextOptions::RecordVideo

Included Modules

Defined in:

playwright/browser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(dir : Path, size : Nil | Playwright::Browser::VideoSize = nil) #

[View source]

Instance Method Detail

def dir : Path #

Path to the directory to put videos into.


[View source]
def dir=(dir : Path) #

Path to the directory to put videos into.


[View source]
def size : VideoSize | Nil #

Optional dimensions of the recorded videos. If not specified the size will be equal to viewport. If viewport is not configured explicitly the video size defaults to 1280x720. Actual picture of each page will be scaled down if necessary to fit the specified size.


[View source]
def size=(size : VideoSize | Nil) #

Optional dimensions of the recorded videos. If not specified the size will be equal to viewport. If viewport is not configured explicitly the video size defaults to 1280x720. Actual picture of each page will be scaled down if necessary to fit the specified size.


[View source]