screenshot
The command to take a screenshot of the element.
Syntax
Element.screenshot(filename)Usage
py.get('a[href="/about"]').screenshot('elements/about-link.png')
---or--- # chain an Element command
py.get('#save-button').screenshot('save-.png').click()Arguments
Yields
Last updated