appium-mac2-driver
Version:
XCTest-based Appium driver for macOS apps automation
15 lines • 666 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.macosScreenshots = macosScreenshots;
/**
* Retrieves screenshots of each display available to macOS
*
* @param displayId - macOS display identifier to take a screenshot for.
* If not provided then screenshots of all displays are going to be returned.
* If no matches were found then an error is thrown.
* @returns Screenshots information for the requested display(s)
*/
async function macosScreenshots(displayId) {
return (await this.wda.proxy.command('/wda/screenshots', 'POST', { displayId }));
}
//# sourceMappingURL=screenshots.js.map