appium-xcuitest-driver
Version:
Appium driver for iOS using XCUITest for backend
15 lines (14 loc) • 437 B
JavaScript
export default {
/**
* Returns information about the active application.
*
* @returns {Promise<import('./types').ActiveAppInfo>} Active app information
* @throws {Error} if an error raised by command
* @this {import('../driver').XCUITestDriver}
*/
async mobileGetActiveAppInfo() {
return /** @type {import('./types').ActiveAppInfo} */ (
await this.proxyCommand('/wda/activeAppInfo', 'GET')
);
},
};