.saveSnapshot() Suggest edits
Take a DOM Snapshot of the current page and saves it as the given filename.
Usage
Example
this.demoTest = function (browser) {
browser.saveSnapshot('/path/to/fileName.html');
};
Parameters
Name | Type | description |
---|---|---|
fileName |
string | The complete path to the file name where the screenshot should be saved. |
callback Optional |
function | Optional callback function to be called when the command finishes. |