MCPcopy
hub / github.com/vitest-dev/vitest / screenshot

Method screenshot

packages/browser/context.d.ts:656–656  ·  view source on GitHub ↗

* Make a screenshot of an element matching the locator. * @see {@link https://vitest.dev/api/browser/locators#screenshot}

(options: Omit<LocatorScreenshotOptions, 'base64'> & { base64: true })

Source from the content-addressed store, hash-verified

654 * @see {@link https://vitest.dev/api/browser/locators#screenshot}
655 */
656 screenshot(options: Omit<LocatorScreenshotOptions, 'base64'> & { base64: true }): Promise<{
657 path: string
658 base64: string
659 }>

Callers 6

BrowserTestRunnerClass · 0.65
screenshotFunction · 0.65
screenshotMethod · 0.65
takeScreenshotFunction · 0.65
dom.test.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected