ScreenshotOptions
Playwright\Page\Options\ScreenshotOptions
Constructor options
| Option | Type | Default |
|---|---|---|
| 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()
arrayfunction toArray(): array
from()
selffunction from(array|self $options = []): self