UNPKG

devtools

Version:

A Chrome DevTools protocol binding that maps WebDriver commands into Chrome DevTools commands using Puppeteer

14 lines 775 B
import type DevToolsDriver from '../devtoolsdriver.js'; /** * The Take Element Screenshot command takes a screenshot of the visible region * encompassed by the bounding rectangle of an element. * * @alias browser.takeElementScreenshot * @see https://w3c.github.io/webdriver/#dfn-take-element-screenshot * @param {string} elementId the id of an element returned in a previous call to Find Element(s) * @return {string} The base64-encoded PNG image data comprising the screenshot of the visible region of an element’s bounding rectangle after it has been scrolled into view. */ export default function takeElementScreenshot(this: DevToolsDriver, { elementId }: { elementId: string; }): Promise<string>; //# sourceMappingURL=takeElementScreenshot.d.ts.map