capturePage

abstract fun capturePage(rect: Rectangle = definedExternally): Promise<NativeImage>(source)

Resolves with a NativeImage

Captures a snapshot of the page within rect. Omitting rect will capture the whole visible page.