MCPcopy Create free account
hub / github.com/angular/components / takeScreenshot

Method takeScreenshot

docs/scenes/e2e/screenshot.ts:36–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 ) {}
35
36 async takeScreenshot() {
37 const el = await this._wd.findElement(webdriver.By.css('app-scene-viewer'));
38 const png = await el.takeScreenshot();
39 this.storeScreenshot(png);
40 }
41
42 /** Replaces the existing screenshot with the newly generated one. */
43 storeScreenshot(png: string) {

Callers 1

screenshotFunction · 0.95

Calls 1

storeScreenshotMethod · 0.95

Tested by

no test coverage detected