capturePage

abstract fun capturePage(rect: Rectangle = definedExternally): ERROR CLASS: Symbol not found for Promise<electron/core/NativeImage>(source)

Resolves with a NativeImage

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