Public Vars

Back

screenshot-element (clj)

(source)

function

(screenshot-element driver q file)
Have `driver` save a PNG format screenshot of the element found by query `q` to `file`. See [[query]] for details on `q`. `file` can be either a string or `java.io.File`, any missing parent directories are automatically created. https://www.w3.org/TR/webdriver2/#dfn-take-element-screenshot

Examples