View Source Improve this doc

elementIdScreenshot

The Take Element Screenshot command takes a screenshot of the visible region encompassed by the bounding rectangle of an element. If given a parameter argument scroll that evaluates to false, the element will not be scrolled into view.

Usage

1
2
browser.elementIdScreenshot();

Returns

  • <String>: screenshot The screenshot as a base64 encoded PNG.