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