appium-xcuitest-driver 10.14.5 → 10.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/build/lib/commands/active-app-info.d.ts +4 -3
- package/build/lib/commands/active-app-info.d.ts.map +1 -1
- package/build/lib/commands/active-app-info.js +2 -3
- package/build/lib/commands/active-app-info.js.map +1 -1
- package/build/lib/commands/app-strings.d.ts +6 -7
- package/build/lib/commands/app-strings.d.ts.map +1 -1
- package/build/lib/commands/app-strings.js +3 -8
- package/build/lib/commands/app-strings.js.map +1 -1
- package/build/lib/commands/audit.d.ts +5 -33
- package/build/lib/commands/audit.d.ts.map +1 -1
- package/build/lib/commands/audit.js +3 -16
- package/build/lib/commands/audit.js.map +1 -1
- package/build/lib/commands/device-info.d.ts +13 -0
- package/build/lib/commands/device-info.d.ts.map +1 -0
- package/build/lib/commands/{deviceInfo.js → device-info.js} +3 -8
- package/build/lib/commands/device-info.js.map +1 -0
- package/build/lib/commands/keychains.d.ts +2 -2
- package/build/lib/commands/keychains.d.ts.map +1 -1
- package/build/lib/commands/keychains.js +1 -4
- package/build/lib/commands/keychains.js.map +1 -1
- package/build/lib/commands/localization.d.ts +7 -6
- package/build/lib/commands/localization.d.ts.map +1 -1
- package/build/lib/commands/localization.js +7 -8
- package/build/lib/commands/localization.js.map +1 -1
- package/build/lib/commands/types.d.ts +22 -0
- package/build/lib/commands/types.d.ts.map +1 -1
- package/build/lib/driver.d.ts +1 -1
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +1 -1
- package/build/lib/driver.js.map +1 -1
- package/lib/commands/active-app-info.ts +15 -0
- package/lib/commands/{app-strings.js → app-strings.ts} +10 -9
- package/lib/commands/audit.ts +25 -0
- package/lib/commands/device-info.ts +24 -0
- package/lib/commands/keychains.ts +16 -0
- package/lib/commands/{localization.js → localization.ts} +22 -12
- package/lib/commands/types.ts +23 -0
- package/lib/driver.ts +1 -1
- package/npm-shrinkwrap.json +5 -5
- package/package.json +1 -1
- package/build/lib/commands/deviceInfo.d.ts +0 -12
- package/build/lib/commands/deviceInfo.d.ts.map +0 -1
- package/build/lib/commands/deviceInfo.js.map +0 -1
- package/lib/commands/active-app-info.js +0 -12
- package/lib/commands/audit.js +0 -31
- package/lib/commands/deviceInfo.js +0 -27
- package/lib/commands/keychains.js +0 -17
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import {utilities} from 'appium-ios-device';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Returns the miscellaneous information about the device under test.
|
|
5
|
-
*
|
|
6
|
-
* Since XCUITest driver v4.2.0, this includes device information via lockdown in a real device.
|
|
7
|
-
*
|
|
8
|
-
* @returns {Promise<DeviceInfo | (DeviceInfo & LockdownInfo)>} The response of `/wda/device/info'`
|
|
9
|
-
* @this {import('../driver').XCUITestDriver}
|
|
10
|
-
*/
|
|
11
|
-
export async function mobileGetDeviceInfo() {
|
|
12
|
-
const infoByWda = /** @type {import('./types').DeviceInfo} */ (
|
|
13
|
-
await this.proxyCommand('/wda/device/info', 'GET')
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
if (this.isRealDevice()) {
|
|
17
|
-
const lockdownInfo = await utilities.getDeviceInfo(this.device.udid);
|
|
18
|
-
return {...infoByWda, ...{lockdownInfo}};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return infoByWda;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @typedef {import('./types').DeviceInfo} DeviceInfo
|
|
26
|
-
* @typedef {import('./types').LockdownInfo} LockdownInfo
|
|
27
|
-
*/
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {assertSimulator as _assertSimulator} from '../utils';
|
|
2
|
-
|
|
3
|
-
const assertSimulator = (driver) => _assertSimulator.call(driver, 'Keychain modification');
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Clears keychains on a simulated device.
|
|
7
|
-
*
|
|
8
|
-
* @throws {Error} If current device is not a Simulator or there was an error
|
|
9
|
-
* while clearing keychains.
|
|
10
|
-
* @this {import('../driver').XCUITestDriver}
|
|
11
|
-
* @group Simulator Only
|
|
12
|
-
*/
|
|
13
|
-
export async function mobileClearKeychains() {
|
|
14
|
-
assertSimulator(this);
|
|
15
|
-
|
|
16
|
-
await /** @type {import('appium-ios-simulator').Simulator} */ (this.device).clearKeychains();
|
|
17
|
-
}
|