UNPKG

appium-xcuitest-driver

Version:

Appium driver for iOS using XCUITest for backend

26 lines 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const appium_ios_device_1 = require("appium-ios-device"); exports.default = { /** * 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 {Promise<DeviceInfo | (DeviceInfo & LockdownInfo)>} The response of `/wda/device/info'` * @this {import('../driver').XCUITestDriver} */ async mobileGetDeviceInfo() { const infoByWda = /** @type {import('./types').DeviceInfo} */ (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; }, }; /** * @typedef {import('./types').DeviceInfo} DeviceInfo * @typedef {import('./types').LockdownInfo} LockdownInfo */ //# sourceMappingURL=deviceInfo.js.map