LocatorScreenshotOptions

Playwright\Locator\Options\LocatorScreenshotOptions

Constructor options

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

Methods

__construct()

function __construct( public ?string $path = null, public ?string $type = null, public ?int $quality = 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, public ?string $style = null, )

toArray()

array
function toArray(): array

from()

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