appium-xcuitest-driver 10.14.3 → 10.14.5
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 +12 -0
- package/build/lib/commands/battery.d.ts +4 -4
- package/build/lib/commands/battery.d.ts.map +1 -1
- package/build/lib/commands/battery.js +3 -7
- package/build/lib/commands/battery.js.map +1 -1
- package/build/lib/commands/biometric.d.ts +12 -14
- package/build/lib/commands/biometric.d.ts.map +1 -1
- package/build/lib/commands/biometric.js +10 -19
- package/build/lib/commands/biometric.js.map +1 -1
- package/build/lib/commands/clipboard.d.ts +9 -11
- package/build/lib/commands/clipboard.d.ts.map +1 -1
- package/build/lib/commands/clipboard.js +8 -13
- package/build/lib/commands/clipboard.js.map +1 -1
- package/build/lib/commands/content-size.d.ts +16 -19
- package/build/lib/commands/content-size.d.ts.map +1 -1
- package/build/lib/commands/content-size.js +14 -22
- package/build/lib/commands/content-size.js.map +1 -1
- package/build/lib/commands/geolocation.d.ts +16 -36
- package/build/lib/commands/geolocation.d.ts.map +1 -1
- package/build/lib/commands/geolocation.js +8 -25
- package/build/lib/commands/geolocation.js.map +1 -1
- package/build/lib/commands/increase-contrast.d.ts +10 -13
- package/build/lib/commands/increase-contrast.d.ts.map +1 -1
- package/build/lib/commands/increase-contrast.js +8 -16
- package/build/lib/commands/increase-contrast.js.map +1 -1
- package/build/lib/commands/iohid.d.ts +6 -1359
- package/build/lib/commands/iohid.d.ts.map +1 -1
- package/build/lib/commands/iohid.js +5 -10
- package/build/lib/commands/iohid.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +16 -13
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js +14 -18
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/lock.d.ts +6 -10
- package/build/lib/commands/lock.d.ts.map +1 -1
- package/build/lib/commands/lock.js +3 -10
- package/build/lib/commands/lock.js.map +1 -1
- package/build/lib/commands/memory.d.ts +4 -5
- package/build/lib/commands/memory.d.ts.map +1 -1
- package/build/lib/commands/memory.js +3 -8
- package/build/lib/commands/memory.js.map +1 -1
- package/build/lib/commands/notifications.d.ts +10 -10
- package/build/lib/commands/notifications.d.ts.map +1 -1
- package/build/lib/commands/notifications.js +8 -12
- package/build/lib/commands/notifications.js.map +1 -1
- package/build/lib/commands/pasteboard.d.ts +9 -10
- package/build/lib/commands/pasteboard.d.ts.map +1 -1
- package/build/lib/commands/pasteboard.js +8 -13
- package/build/lib/commands/pasteboard.js.map +1 -1
- package/lib/commands/{battery.js → battery.ts} +10 -12
- package/lib/commands/biometric.ts +52 -0
- package/lib/commands/clipboard.ts +37 -0
- package/lib/commands/content-size.ts +67 -0
- package/lib/commands/geolocation.ts +55 -0
- package/lib/commands/increase-contrast.ts +49 -0
- package/lib/commands/{iohid.js → iohid.ts} +15 -13
- package/lib/commands/keyboard.ts +70 -0
- package/lib/commands/lock.ts +43 -0
- package/lib/commands/{memory.js → memory.ts} +9 -9
- package/lib/commands/{notifications.js → notifications.ts} +22 -14
- package/lib/commands/pasteboard.ts +44 -0
- package/npm-shrinkwrap.json +29 -8
- package/package.json +1 -1
- package/lib/commands/biometric.js +0 -52
- package/lib/commands/clipboard.js +0 -35
- package/lib/commands/content-size.js +0 -68
- package/lib/commands/geolocation.js +0 -56
- package/lib/commands/increase-contrast.js +0 -50
- package/lib/commands/keyboard.js +0 -62
- package/lib/commands/lock.js +0 -46
- package/lib/commands/pasteboard.js +0 -43
|
@@ -17,33 +17,25 @@ const INCREASE_CONTRAST_CONFIG = [
|
|
|
17
17
|
* Sets the increase contrast configuration for the given simulator.
|
|
18
18
|
*
|
|
19
19
|
* @since Xcode 15 (but lower xcode could have this command)
|
|
20
|
-
* @param
|
|
21
|
-
*
|
|
22
|
-
* @throws
|
|
23
|
-
* @this {XCUITestDriver}
|
|
20
|
+
* @param increaseContrast - Valid increase contrast configuration value.
|
|
21
|
+
* Acceptable value is 'enabled' or 'disabled' with Xcode 16.2.
|
|
22
|
+
* @throws If the current platform does not support content size appearance changes
|
|
24
23
|
*/
|
|
25
24
|
async function mobileSetIncreaseContrast(increaseContrast) {
|
|
26
|
-
const simulator = assertSimulator(this);
|
|
27
25
|
if (!INCREASE_CONTRAST_CONFIG.includes(lodash_1.default.lowerCase(increaseContrast))) {
|
|
28
26
|
throw new driver_1.errors.InvalidArgumentError(`The 'increaseContrast' value is expected to be one of ${INCREASE_CONTRAST_CONFIG.join(',')}`);
|
|
29
27
|
}
|
|
30
|
-
await
|
|
28
|
+
await assertSimulator(this).setIncreaseContrast(increaseContrast);
|
|
31
29
|
}
|
|
32
30
|
/**
|
|
33
31
|
* Retrieves the current increase contrast configuration value from the given simulator.
|
|
34
32
|
*
|
|
35
33
|
* @since Xcode 15 (but lower xcode could have this command)
|
|
36
|
-
* @returns
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* @this {XCUITestDriver}
|
|
34
|
+
* @returns The contrast configuration value.
|
|
35
|
+
* Possible return value is 'enabled', 'disabled',
|
|
36
|
+
* 'unsupported' or 'unknown' with Xcode 16.2.
|
|
40
37
|
*/
|
|
41
38
|
async function mobileGetIncreaseContrast() {
|
|
42
|
-
return
|
|
39
|
+
return await assertSimulator(this).getIncreaseContrast();
|
|
43
40
|
}
|
|
44
|
-
/**
|
|
45
|
-
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
46
|
-
* @typedef {import('./types').IncreaseContrastAction} IncreaseContrastAction
|
|
47
|
-
* @typedef {import('./types').IncreaseContrastResult} IncreaseContrastResult
|
|
48
|
-
*/
|
|
49
41
|
//# sourceMappingURL=increase-contrast.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"increase-contrast.js","sourceRoot":"","sources":["../../../lib/commands/increase-contrast.
|
|
1
|
+
{"version":3,"file":"increase-contrast.js","sourceRoot":"","sources":["../../../lib/commands/increase-contrast.ts"],"names":[],"mappings":";;;;;AAsBA,8DAWC;AAUD,8DAIC;AA/CD,oDAAuB;AACvB,oCAA6D;AAC7D,0CAAuC;AAKvC,MAAM,eAAe,GAAG,CAAC,MAAsB,EAAa,EAAE,CAAC,uBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;AAExH,MAAM,wBAAwB,GAAG;IAC7B,SAAS;IACT,UAAU;CACJ,CAAC;AAEX;;;;;;;GAOG;AACI,KAAK,UAAU,yBAAyB,CAE7C,gBAAwC;IAExC,IAAI,CAAE,wBAA8C,CAAC,QAAQ,CAAC,gBAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC;QAC7F,MAAM,IAAI,eAAM,CAAC,oBAAoB,CACnC,yDAAyD,wBAAwB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAC9F,CAAC;IACJ,CAAC;IAED,MAAM,eAAe,CAAC,IAAI,CAAC,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AACpE,CAAC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,yBAAyB;IAG7C,OAAO,MAAM,eAAe,CAAC,IAAI,CAAC,CAAC,mBAAmB,EAA4B,CAAC;AACrF,CAAC"}
|