Skip to content

API Reference / @gtkx/testing / ScreenshotOptions

Type Alias: ScreenshotOptions ​

ScreenshotOptions = Pick<WaitForOptions, "timeout" | "interval"> & object

Defined in: packages/testing/src/types.ts:226

Options for capturing a screenshot: the poll timeout and interval, a rendering scale factor, and a file to write the PNG to.

Type Declaration ​

path? ​

optional path?: string

File the PNG is written to, with its parent directories created as needed.

scale? ​

optional scale?: number

Device scale factor applied when rendering.