appium-uiautomator2-driver
Version:
UiAutomator2 integration for Appium
18 lines • 593 B
JavaScript
/**
* Gets a list of windows on all displays.
* For Android API 30+ (R), uses getWindowsOnAllDisplays().
* For older APIs, uses getWindows().
*/
export 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.
*/
export async function mobileListDisplays() {
return (await this.uiautomator2.jwproxy.command('/appium/list_displays', 'POST', {}));
}
//# sourceMappingURL=windows.js.map