Skip to content

API Reference / @gtkx/testing / ScreenshotOptions

Type Alias: ScreenshotOptions

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

Defined in: packages/testing/dist/types.d.ts:192

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.

Released under the MPL-2.0 License.