Skip to content

API Reference / @gtkx/testing / ScreenshotResult

Type Alias: ScreenshotResult

ScreenshotResult = object

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

A captured screenshot: base64-encoded image data, its MIME type, and pixel dimensions.

Properties

data

data: string

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

Base64-encoded image bytes.


height

height: number

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

Image height in pixels, after the scale factor is applied.


mimeType

mimeType: string

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

MIME type of the encoded image, always image/png.


width

width: number

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

Image width in pixels, after the scale factor is applied.

Released under the MPL-2.0 License.