ScreenshotOptions

Playwright\Page\Options\ScreenshotOptions

Constructor options

OptionTypeDefault
path ?string null
type ?string null
quality ?int null
fullPage ?bool null
clip ?array null
omitBackground ?bool null
timeout ?float null
animations ?string null
caret ?string null
scale ?string null
mask ?array null
maskColor ?string null

Methods

__construct()

function __construct( public ?string $path = null, public ?string $type = null, public ?int $quality = null, public ?bool $fullPage = null, public ?array $clip = null, public ?bool $omitBackground = null, public ?float $timeout = null, public ?string $animations = null, public ?string $caret = null, public ?string $scale = null, public ?array $mask = null, public ?string $maskColor = null, )

toArray()

array
function toArray(): array

from()

self
function from(array|self $options = []): self