appium-xcuitest-driver
Version:
Appium driver for iOS using XCUITest for backend
13 lines (11 loc) • 422 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');
}