appium-uiautomator2-driver
Version:
UiAutomator2 integration for Appium
22 lines • 752 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.mobileListWindows = mobileListWindows;
exports.mobileListDisplays = mobileListDisplays;
/**
* Gets a list of windows on all displays.
* For Android API 30+ (R), uses getWindowsOnAllDisplays().
* For older APIs, uses getWindows().
*/
async function mobileListWindows(filters, skipScreenshots) {
return (await this.uiautomator2.jwproxy.command('/appium/list_windows', 'POST', {
filters,
skipScreenshots,
}));
}
/**
* Gets a list of all displays available on the device.
*/
async function mobileListDisplays() {
return (await this.uiautomator2.jwproxy.command('/appium/list_displays', 'POST', {}));
}
//# sourceMappingURL=windows.js.map