UNPKG

appium-xcuitest-driver

Version:

Appium driver for iOS using XCUITest for backend

20 lines 780 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mobileGetDeviceInfo = mobileGetDeviceInfo; const appium_ios_device_1 = require("appium-ios-device"); /** * Returns the miscellaneous information about the device under test. * * Since XCUITest driver v4.2.0, this includes device information via lockdown in a real device. * * @returns The response of `/wda/device/info'` */ async function mobileGetDeviceInfo() { const infoByWda = await this.proxyCommand('/wda/device/info', 'GET'); if (this.isRealDevice()) { const lockdownInfo = await appium_ios_device_1.utilities.getDeviceInfo(this.device.udid); return { ...infoByWda, ...{ lockdownInfo } }; } return infoByWda; } //# sourceMappingURL=device-info.js.map