capture-obsidian-screenshot
Captures a screenshot of the Obsidian instance the current test context is already driving.
The transport-level captureScreenshot needs a transport in hand, which a test running under the harness’s global setup never has — the instance is owned by that setup and reached through the context provider. This is the context-resolving entry point, the screenshot counterpart of evalInObsidian / pollInObsidian: with no arguments at all it captures whatever instance the active project is driving, desktop or mobile.
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| CaptureObsidianScreenshotOptions | Options for captureObsidianScreenshot. |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| captureObsidianScreenshot | Captures a PNG screenshot of the running Obsidian instance, resolving the transport and vault from the current test context. |