appium-xcuitest-driver
Version:
Appium driver for iOS using XCUITest for backend
18 lines • 698 B
TypeScript
import type { Simulator } from 'appium-ios-simulator';
import type { RealDevice } from '../../device/real-device-management';
export interface DeviceGuardDriver {
isSimulator(): boolean;
isRealDevice(): boolean;
readonly device: unknown;
}
/**
* Requires that the given driver is running on a Simulator and return
* the simulator instance.
*/
export declare function requireSimulator(driver: DeviceGuardDriver, action: string): Simulator;
/**
* Requires that the given driver is running on a real device and return
* the real device instance.
*/
export declare function requireRealDevice(driver: DeviceGuardDriver, action: string): RealDevice;
//# sourceMappingURL=guards.d.ts.map