appium-xcuitest-driver
Version:
Appium driver for iOS using XCUITest for backend
19 lines • 605 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
/**
* Reads the battery information from the device under test.
*
* This endpoint only returns reliable result on real devices.
*
* @returns {Promise<BatteryInfo>} The battery info
* @this {import('../driver').XCUITestDriver}
*/
async mobileGetBatteryInfo() {
return /** @type {BatteryInfo} */ (await this.proxyCommand('/wda/batteryInfo', 'GET'));
},
};
/**
* @typedef {import('./types').BatteryInfo} BatteryInfo
*/
//# sourceMappingURL=battery.js.map