API Reference / @gtkx/testing / ScreenshotResult
Type Alias: ScreenshotResult
ScreenshotResult =
object
Defined in: packages/testing/src/types.ts:211
A captured screenshot: base64-encoded image data, its MIME type, and pixel dimensions.
Properties
data
data:
string
Defined in: packages/testing/src/types.ts:213
Base64-encoded image bytes.
height
height:
number
Defined in: packages/testing/src/types.ts:219
Image height in pixels, after the scale factor is applied.
mimeType
mimeType:
string
Defined in: packages/testing/src/types.ts:215
MIME type of the encoded image, always image/png.
width
width:
number
Defined in: packages/testing/src/types.ts:217
Image width in pixels, after the scale factor is applied.