appium-android-driver 7.8.3 → 8.0.1
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 +32 -0
- package/build/lib/commands/app-management.d.ts +129 -5
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +433 -128
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/appearance.d.ts +17 -4
- package/build/lib/commands/appearance.d.ts.map +1 -1
- package/build/lib/commands/appearance.js +32 -33
- package/build/lib/commands/appearance.js.map +1 -1
- package/build/lib/commands/context/cache.d.ts +19 -0
- package/build/lib/commands/context/cache.d.ts.map +1 -0
- package/build/lib/commands/context/cache.js +32 -0
- package/build/lib/commands/context/cache.js.map +1 -0
- package/build/lib/commands/context/exports.d.ts +141 -0
- package/build/lib/commands/context/exports.d.ts.map +1 -0
- package/build/lib/commands/context/exports.js +351 -0
- package/build/lib/commands/context/exports.js.map +1 -0
- package/build/lib/commands/context/helpers.d.ts +98 -0
- package/build/lib/commands/context/helpers.d.ts.map +1 -0
- package/build/lib/commands/context/helpers.js +715 -0
- package/build/lib/commands/context/helpers.js.map +1 -0
- package/build/lib/commands/device/common.d.ts +23 -0
- package/build/lib/commands/device/common.d.ts.map +1 -0
- package/build/lib/commands/device/common.js +230 -0
- package/build/lib/commands/device/common.js.map +1 -0
- package/build/lib/commands/device/emulator-actions.d.ts +114 -0
- package/build/lib/commands/device/emulator-actions.d.ts.map +1 -0
- package/build/lib/commands/device/emulator-actions.js +197 -0
- package/build/lib/commands/device/emulator-actions.js.map +1 -0
- package/build/lib/commands/device/emulator-console.d.ts +7 -0
- package/build/lib/commands/device/emulator-console.d.ts.map +1 -0
- package/build/lib/commands/device/emulator-console.js +24 -0
- package/build/lib/commands/device/emulator-console.js.map +1 -0
- package/build/lib/commands/device/utils.d.ts +50 -0
- package/build/lib/commands/device/utils.d.ts.map +1 -0
- package/build/lib/commands/device/utils.js +238 -0
- package/build/lib/commands/device/utils.js.map +1 -0
- package/build/lib/commands/deviceidle.d.ts +8 -5
- package/build/lib/commands/deviceidle.d.ts.map +1 -1
- package/build/lib/commands/deviceidle.js +31 -37
- package/build/lib/commands/deviceidle.js.map +1 -1
- package/build/lib/commands/element.d.ts +99 -5
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +152 -116
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/execute.d.ts +12 -4
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +83 -78
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-actions.d.ts +42 -5
- package/build/lib/commands/file-actions.d.ts.map +1 -1
- package/build/lib/commands/file-actions.js +230 -194
- package/build/lib/commands/file-actions.js.map +1 -1
- package/build/lib/commands/find.d.ts +5 -4
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +7 -10
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/geolocation.d.ts +45 -0
- package/build/lib/commands/geolocation.d.ts.map +1 -0
- package/build/lib/commands/geolocation.js +182 -0
- package/build/lib/commands/geolocation.js.map +1 -0
- package/build/lib/commands/ime.d.ts +25 -5
- package/build/lib/commands/ime.d.ts.map +1 -1
- package/build/lib/commands/ime.js +59 -42
- package/build/lib/commands/ime.js.map +1 -1
- package/build/lib/commands/intent.d.ts +56 -5
- package/build/lib/commands/intent.d.ts.map +1 -1
- package/build/lib/commands/intent.js +135 -83
- package/build/lib/commands/intent.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +58 -4
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js +119 -17
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/lock/exports.d.ts +301 -0
- package/build/lib/commands/lock/exports.d.ts.map +1 -0
- package/build/lib/commands/lock/exports.js +121 -0
- package/build/lib/commands/lock/exports.js.map +1 -0
- package/build/lib/commands/lock/helpers.d.ts +349 -0
- package/build/lib/commands/lock/helpers.d.ts.map +1 -0
- package/build/lib/commands/lock/helpers.js +375 -0
- package/build/lib/commands/lock/helpers.js.map +1 -0
- package/build/lib/commands/log.d.ts +59 -5
- package/build/lib/commands/log.d.ts.map +1 -1
- package/build/lib/commands/log.js +150 -140
- package/build/lib/commands/log.js.map +1 -1
- package/build/lib/commands/media-projection.d.ts +16 -5
- package/build/lib/commands/media-projection.d.ts.map +1 -1
- package/build/lib/commands/media-projection.js +69 -58
- package/build/lib/commands/media-projection.js.map +1 -1
- package/build/lib/commands/memory.d.ts +9 -5
- package/build/lib/commands/memory.d.ts.map +1 -1
- package/build/lib/commands/memory.js +19 -24
- package/build/lib/commands/memory.js.map +1 -1
- package/build/lib/commands/misc.d.ts +42 -0
- package/build/lib/commands/misc.d.ts.map +1 -0
- package/build/lib/commands/misc.js +100 -0
- package/build/lib/commands/misc.js.map +1 -0
- package/build/lib/commands/network.d.ts +61 -5
- package/build/lib/commands/network.d.ts.map +1 -1
- package/build/lib/commands/network.js +196 -189
- package/build/lib/commands/network.js.map +1 -1
- package/build/lib/commands/performance.d.ts +67 -27
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/performance.js +105 -80
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts +12 -6
- package/build/lib/commands/permissions.d.ts.map +1 -1
- package/build/lib/commands/permissions.js +65 -62
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/recordscreen.d.ts +44 -5
- package/build/lib/commands/recordscreen.d.ts.map +1 -1
- package/build/lib/commands/recordscreen.js +131 -126
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/commands/resources.d.ts +16 -0
- package/build/lib/commands/resources.d.ts.map +1 -0
- package/build/lib/commands/resources.js +91 -0
- package/build/lib/commands/resources.js.map +1 -0
- package/build/lib/commands/shell.d.ts +8 -5
- package/build/lib/commands/shell.d.ts.map +1 -1
- package/build/lib/commands/shell.js +29 -33
- package/build/lib/commands/shell.js.map +1 -1
- package/build/lib/commands/streamscreen.d.ts +34 -6
- package/build/lib/commands/streamscreen.d.ts.map +1 -1
- package/build/lib/commands/streamscreen.js +166 -162
- package/build/lib/commands/streamscreen.js.map +1 -1
- package/build/lib/commands/system-bars.d.ts +18 -13
- package/build/lib/commands/system-bars.d.ts.map +1 -1
- package/build/lib/commands/system-bars.js +68 -64
- package/build/lib/commands/system-bars.js.map +1 -1
- package/build/lib/commands/time.d.ts +14 -0
- package/build/lib/commands/time.d.ts.map +1 -0
- package/build/lib/commands/time.js +39 -0
- package/build/lib/commands/time.js.map +1 -0
- package/build/lib/commands/touch.d.ts +99 -6
- package/build/lib/commands/touch.d.ts.map +1 -1
- package/build/lib/commands/touch.js +399 -280
- package/build/lib/commands/touch.js.map +1 -1
- package/build/lib/commands/types.d.ts +110 -2
- package/build/lib/commands/types.d.ts.map +1 -1
- package/build/lib/doctor/checks.d.ts.map +1 -1
- package/build/lib/doctor/checks.js +4 -4
- package/build/lib/doctor/checks.js.map +1 -1
- package/build/lib/driver.d.ts +224 -27
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +232 -7
- package/build/lib/driver.js.map +1 -1
- package/build/lib/index.d.ts +1 -4
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +1 -13
- package/build/lib/index.js.map +1 -1
- package/build/lib/logger.js.map +1 -1
- package/build/lib/method-map.d.ts +0 -23
- package/build/lib/method-map.d.ts.map +1 -1
- package/build/lib/method-map.js +0 -11
- package/build/lib/method-map.js.map +1 -1
- package/build/lib/utils.d.ts +12 -0
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +38 -2
- package/build/lib/utils.js.map +1 -1
- package/lib/commands/app-management.js +470 -145
- package/lib/commands/appearance.js +29 -36
- package/lib/commands/context/cache.js +29 -0
- package/lib/commands/context/exports.js +379 -0
- package/lib/commands/context/helpers.js +802 -0
- package/lib/commands/device/common.js +264 -0
- package/lib/commands/device/emulator-actions.js +194 -0
- package/lib/commands/device/emulator-console.js +24 -0
- package/lib/commands/device/utils.js +285 -0
- package/lib/commands/deviceidle.js +31 -44
- package/lib/commands/element.js +149 -142
- package/lib/commands/execute.js +86 -87
- package/lib/commands/file-actions.js +249 -222
- package/lib/commands/find.ts +13 -19
- package/lib/commands/geolocation.js +179 -0
- package/lib/commands/ime.js +53 -45
- package/lib/commands/intent.js +149 -91
- package/lib/commands/keyboard.js +114 -17
- package/lib/commands/lock/exports.js +139 -0
- package/lib/commands/lock/helpers.js +379 -0
- package/lib/commands/log.js +170 -166
- package/lib/commands/media-projection.js +75 -70
- package/lib/commands/memory.js +17 -29
- package/lib/commands/misc.js +94 -0
- package/lib/commands/network.js +209 -223
- package/lib/commands/performance.js +88 -73
- package/lib/commands/permissions.js +83 -84
- package/lib/commands/recordscreen.js +171 -170
- package/lib/commands/resources.js +96 -0
- package/lib/commands/shell.js +28 -42
- package/lib/commands/streamscreen.js +207 -206
- package/lib/commands/system-bars.js +76 -77
- package/lib/commands/time.js +36 -0
- package/lib/commands/touch.js +442 -346
- package/lib/commands/types.ts +123 -2
- package/lib/doctor/checks.js +24 -16
- package/lib/driver.ts +454 -12
- package/lib/index.ts +1 -13
- package/lib/logger.js +1 -1
- package/lib/method-map.js +0 -11
- package/lib/utils.js +40 -3
- package/package.json +2 -2
- package/build/lib/commands/actions.d.ts +0 -8
- package/build/lib/commands/actions.d.ts.map +0 -1
- package/build/lib/commands/actions.js +0 -207
- package/build/lib/commands/actions.js.map +0 -1
- package/build/lib/commands/alert.d.ts +0 -8
- package/build/lib/commands/alert.d.ts.map +0 -1
- package/build/lib/commands/alert.js +0 -29
- package/build/lib/commands/alert.js.map +0 -1
- package/build/lib/commands/context.d.ts +0 -10
- package/build/lib/commands/context.d.ts.map +0 -1
- package/build/lib/commands/context.js +0 -431
- package/build/lib/commands/context.js.map +0 -1
- package/build/lib/commands/emu-console.d.ts +0 -7
- package/build/lib/commands/emu-console.d.ts.map +0 -1
- package/build/lib/commands/emu-console.js +0 -27
- package/build/lib/commands/emu-console.js.map +0 -1
- package/build/lib/commands/general.d.ts +0 -9
- package/build/lib/commands/general.d.ts.map +0 -1
- package/build/lib/commands/general.js +0 -293
- package/build/lib/commands/general.js.map +0 -1
- package/build/lib/commands/index.d.ts +0 -28
- package/build/lib/commands/index.d.ts.map +0 -1
- package/build/lib/commands/index.js +0 -57
- package/build/lib/commands/index.js.map +0 -1
- package/build/lib/commands/mixins.d.ts +0 -747
- package/build/lib/commands/mixins.d.ts.map +0 -1
- package/build/lib/commands/mixins.js +0 -19
- package/build/lib/commands/mixins.js.map +0 -1
- package/build/lib/helpers/android.d.ts +0 -163
- package/build/lib/helpers/android.d.ts.map +0 -1
- package/build/lib/helpers/android.js +0 -818
- package/build/lib/helpers/android.js.map +0 -1
- package/build/lib/helpers/index.d.ts +0 -7
- package/build/lib/helpers/index.d.ts.map +0 -1
- package/build/lib/helpers/index.js +0 -29
- package/build/lib/helpers/index.js.map +0 -1
- package/build/lib/helpers/types.d.ts +0 -122
- package/build/lib/helpers/types.d.ts.map +0 -1
- package/build/lib/helpers/types.js +0 -3
- package/build/lib/helpers/types.js.map +0 -1
- package/build/lib/helpers/unlock.d.ts +0 -32
- package/build/lib/helpers/unlock.d.ts.map +0 -1
- package/build/lib/helpers/unlock.js +0 -273
- package/build/lib/helpers/unlock.js.map +0 -1
- package/build/lib/helpers/webview.d.ts +0 -74
- package/build/lib/helpers/webview.d.ts.map +0 -1
- package/build/lib/helpers/webview.js +0 -448
- package/build/lib/helpers/webview.js.map +0 -1
- package/lib/commands/actions.js +0 -244
- package/lib/commands/alert.js +0 -34
- package/lib/commands/context.js +0 -507
- package/lib/commands/emu-console.js +0 -31
- package/lib/commands/general.js +0 -343
- package/lib/commands/index.ts +0 -54
- package/lib/commands/mixins.ts +0 -976
- package/lib/helpers/android.ts +0 -1153
- package/lib/helpers/index.ts +0 -6
- package/lib/helpers/types.ts +0 -136
- package/lib/helpers/unlock.ts +0 -329
- package/lib/helpers/webview.ts +0 -610
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../lib/commands/intent.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../lib/commands/intent.js"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AACvB,0CAAqC;AACrC,6CAAqC;AAErC,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAC/B,MAAM,qBAAqB,GAAG;IAC5B,GAAG;IACH,iBAAiB;IACjB,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;CACN,CAAC;AACF,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAE/B;;;;;;;;;;;;;GAaG;AACI,KAAK,UAAU,aAAa,CACjC,UAAU,EACV,WAAW,EACX,cAAc,EACd,eAAe,EACf,YAAY,EACZ,cAAc,EACd,WAAW,EACX,uBAAuB,EACvB,kBAAkB;IAElB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,qBAAqB,UAAU,mBAAmB,WAAW,GAAG,CAAC,CAAC;IAEjF,wEAAwE;IACxE,wDAAwD;IACxD,IAAI,CAAC,cAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE;QACtC,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC;KACrD;IAED,mDAAmD;IACnD,IAAI,IAAI,GAAG;QACT,GAAG,EAAE,UAAU;QACf,QAAQ,EAAE,WAAW;QACrB,OAAO,EAAE,cAAc,IAAI,UAAU;QACrC,YAAY,EAAE,eAAe,IAAI,WAAW;QAC5C,MAAM,EAAE,YAAY;QACpB,QAAQ,EAAE,cAAc;QACxB,KAAK,EAAE,WAAW;QAClB,uBAAuB;QACvB,OAAO,EAAE,CAAC,kBAAk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K,EAAE;QACT,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC9B;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,aAAa;AAEb;;GAEG"}
|
|
@@ -1,7 +1,61 @@
|
|
|
1
|
-
export default KeyboardMixin;
|
|
2
1
|
/**
|
|
3
|
-
* @
|
|
4
|
-
* @
|
|
2
|
+
* @this {import('../driver').AndroidDriver}
|
|
3
|
+
* @returns {Promise<boolean>}
|
|
5
4
|
*/
|
|
6
|
-
|
|
5
|
+
export function hideKeyboard(this: import("../driver").AndroidDriver): Promise<boolean>;
|
|
6
|
+
/**
|
|
7
|
+
* @this {import('../driver').AndroidDriver}
|
|
8
|
+
* @returns {Promise<boolean>}
|
|
9
|
+
*/
|
|
10
|
+
export function isKeyboardShown(this: import("../driver").AndroidDriver): Promise<boolean>;
|
|
11
|
+
/**
|
|
12
|
+
* @this {import('../driver').AndroidDriver}
|
|
13
|
+
* @param {string|string[]} keys
|
|
14
|
+
* @returns {Promise<void>}
|
|
15
|
+
*/
|
|
16
|
+
export function keys(this: import("../driver").AndroidDriver, keys: string | string[]): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* @this {import('../driver').AndroidDriver}
|
|
19
|
+
* @param {import('./types').SendKeysOpts} params
|
|
20
|
+
* @returns {Promise<void>}
|
|
21
|
+
*/
|
|
22
|
+
export function doSendKeys(this: import("../driver").AndroidDriver, params: import('./types').SendKeysOpts): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* @this {import('../driver').AndroidDriver}
|
|
25
|
+
* @param {string|number} keycode
|
|
26
|
+
* @param {number} [metastate]
|
|
27
|
+
* @returns {Promise<void>}
|
|
28
|
+
*/
|
|
29
|
+
export function keyevent(this: import("../driver").AndroidDriver, keycode: string | number, metastate?: number | undefined): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* @this {import('../driver').AndroidDriver}
|
|
32
|
+
* @param {string|number} keycode
|
|
33
|
+
* @param {number} [metastate]
|
|
34
|
+
* @returns {Promise<void>}
|
|
35
|
+
*/
|
|
36
|
+
export function pressKeyCode(this: import("../driver").AndroidDriver, keycode: string | number, metastate?: number | undefined): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* @this {import('../driver').AndroidDriver}
|
|
39
|
+
* @param {string|number} keycode
|
|
40
|
+
* @param {number} [metastate]
|
|
41
|
+
* @returns {Promise<void>}
|
|
42
|
+
*/
|
|
43
|
+
export function longPressKeyCode(this: import("../driver").AndroidDriver, keycode: string | number, metastate?: number | undefined): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* @this {import('../driver').AndroidDriver}
|
|
46
|
+
* @param {import('./types').PerformEditorActionOpts} opts
|
|
47
|
+
* @returns {Promise<void>}
|
|
48
|
+
*/
|
|
49
|
+
export function mobilePerformEditorAction(this: import("../driver").AndroidDriver, opts: import('./types').PerformEditorActionOpts): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated
|
|
52
|
+
* @this {import('../driver').AndroidDriver}
|
|
53
|
+
* @returns {Promise<string?>}
|
|
54
|
+
*/
|
|
55
|
+
export function initUnicodeKeyboard(this: import("../driver").AndroidDriver): Promise<string | null>;
|
|
56
|
+
/**
|
|
57
|
+
* @this {import('../driver').AndroidDriver}
|
|
58
|
+
* @returns {Promise<void>}
|
|
59
|
+
*/
|
|
60
|
+
export function hideKeyboardCompletely(this: import("../driver").AndroidDriver): Promise<void>;
|
|
7
61
|
//# sourceMappingURL=keyboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../../lib/commands/keyboard.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../../lib/commands/keyboard.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH,uEAFa,QAAQ,OAAO,CAAC,CAI5B;AAED;;;GAGG;AACH,0EAFa,QAAQ,OAAO,CAAC,CAO5B;AAED;;;;GAIG;AACH,oEAHW,MAAM,GAAC,MAAM,EAAE,GACb,QAAQ,IAAI,CAAC,CASzB;AAED;;;;GAIG;AACH,4EAHW,OAAO,SAAS,EAAE,YAAY,GAC5B,QAAQ,IAAI,CAAC,CAIzB;AAED;;;;;GAKG;AACH,2EAJW,MAAM,GAAC,MAAM,mCAEX,QAAQ,IAAI,CAAC,CAMzB;AAED;;;;;GAKG;AACH,+EAJW,MAAM,GAAC,MAAM,mCAEX,QAAQ,IAAI,CAAC,CAIzB;AAED;;;;;GAKG;AACH,mFAJW,MAAM,GAAC,MAAM,mCAEX,QAAQ,IAAI,CAAC,CAIzB;AAED;;;;GAIG;AACH,yFAHW,OAAO,SAAS,EAAE,uBAAuB,GACvC,QAAQ,IAAI,CAAC,CAKzB;AAID;;;;GAIG;AACH,8EAFa,QAAQ,MAAM,QAAE,CAa5B;AAED;;;GAGG;AACH,iFAFa,QAAQ,IAAI,CAAC,CAMzB"}
|
|
@@ -1,20 +1,122 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const mixins_1 = require("./mixins");
|
|
5
|
-
/**
|
|
6
|
-
* @type {import('./mixins').KeyboardMixin & ThisType<import('../driver').AndroidDriver>}
|
|
7
|
-
* @satisfies {import('@appium/types').ExternalDriver}
|
|
8
|
-
*/
|
|
9
|
-
const KeyboardMixin = {
|
|
10
|
-
async hideKeyboard() {
|
|
11
|
-
return await /** @type {import('appium-adb').ADB} */ (this.adb).hideKeyboard();
|
|
12
|
-
},
|
|
13
|
-
async isKeyboardShown() {
|
|
14
|
-
const { isKeyboardShown } = await /** @type {import('appium-adb').ADB} */ (this.adb).isSoftKeyboardPresent();
|
|
15
|
-
return isKeyboardShown;
|
|
16
|
-
},
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
4
|
};
|
|
18
|
-
(
|
|
19
|
-
exports.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.hideKeyboardCompletely = exports.initUnicodeKeyboard = exports.mobilePerformEditorAction = exports.longPressKeyCode = exports.pressKeyCode = exports.keyevent = exports.doSendKeys = exports.keys = exports.isKeyboardShown = exports.hideKeyboard = void 0;
|
|
7
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
8
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
9
|
+
const driver_1 = require("appium/driver");
|
|
10
|
+
const utils_1 = require("../utils");
|
|
11
|
+
const io_appium_settings_1 = require("io.appium.settings");
|
|
12
|
+
/**
|
|
13
|
+
* @this {import('../driver').AndroidDriver}
|
|
14
|
+
* @returns {Promise<boolean>}
|
|
15
|
+
*/
|
|
16
|
+
async function hideKeyboard() {
|
|
17
|
+
return await /** @type {import('appium-adb').ADB} */ (this.adb).hideKeyboard();
|
|
18
|
+
}
|
|
19
|
+
exports.hideKeyboard = hideKeyboard;
|
|
20
|
+
/**
|
|
21
|
+
* @this {import('../driver').AndroidDriver}
|
|
22
|
+
* @returns {Promise<boolean>}
|
|
23
|
+
*/
|
|
24
|
+
async function isKeyboardShown() {
|
|
25
|
+
const { isKeyboardShown } = await /** @type {import('appium-adb').ADB} */ (this.adb).isSoftKeyboardPresent();
|
|
26
|
+
return isKeyboardShown;
|
|
27
|
+
}
|
|
28
|
+
exports.isKeyboardShown = isKeyboardShown;
|
|
29
|
+
/**
|
|
30
|
+
* @this {import('../driver').AndroidDriver}
|
|
31
|
+
* @param {string|string[]} keys
|
|
32
|
+
* @returns {Promise<void>}
|
|
33
|
+
*/
|
|
34
|
+
async function keys(keys) {
|
|
35
|
+
// Protocol sends an array; rethink approach
|
|
36
|
+
keys = lodash_1.default.isArray(keys) ? keys.join('') : keys;
|
|
37
|
+
await this.doSendKeys({
|
|
38
|
+
text: keys,
|
|
39
|
+
replace: false,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
exports.keys = keys;
|
|
43
|
+
/**
|
|
44
|
+
* @this {import('../driver').AndroidDriver}
|
|
45
|
+
* @param {import('./types').SendKeysOpts} params
|
|
46
|
+
* @returns {Promise<void>}
|
|
47
|
+
*/
|
|
48
|
+
async function doSendKeys(params) {
|
|
49
|
+
throw new driver_1.errors.NotImplementedError('Not implemented');
|
|
50
|
+
}
|
|
51
|
+
exports.doSendKeys = doSendKeys;
|
|
52
|
+
/**
|
|
53
|
+
* @this {import('../driver').AndroidDriver}
|
|
54
|
+
* @param {string|number} keycode
|
|
55
|
+
* @param {number} [metastate]
|
|
56
|
+
* @returns {Promise<void>}
|
|
57
|
+
*/
|
|
58
|
+
async function keyevent(keycode, metastate) {
|
|
59
|
+
// TODO deprecate keyevent; currently wd only implements keyevent
|
|
60
|
+
this.log.warn('keyevent will be deprecated use pressKeyCode');
|
|
61
|
+
return await this.pressKeyCode(keycode, metastate);
|
|
62
|
+
}
|
|
63
|
+
exports.keyevent = keyevent;
|
|
64
|
+
/**
|
|
65
|
+
* @this {import('../driver').AndroidDriver}
|
|
66
|
+
* @param {string|number} keycode
|
|
67
|
+
* @param {number} [metastate]
|
|
68
|
+
* @returns {Promise<void>}
|
|
69
|
+
*/
|
|
70
|
+
async function pressKeyCode(keycode, metastate) {
|
|
71
|
+
throw new driver_1.errors.NotImplementedError('Not implemented');
|
|
72
|
+
}
|
|
73
|
+
exports.pressKeyCode = pressKeyCode;
|
|
74
|
+
/**
|
|
75
|
+
* @this {import('../driver').AndroidDriver}
|
|
76
|
+
* @param {string|number} keycode
|
|
77
|
+
* @param {number} [metastate]
|
|
78
|
+
* @returns {Promise<void>}
|
|
79
|
+
*/
|
|
80
|
+
async function longPressKeyCode(keycode, metastate) {
|
|
81
|
+
throw new driver_1.errors.NotImplementedError('Not implemented');
|
|
82
|
+
}
|
|
83
|
+
exports.longPressKeyCode = longPressKeyCode;
|
|
84
|
+
/**
|
|
85
|
+
* @this {import('../driver').AndroidDriver}
|
|
86
|
+
* @param {import('./types').PerformEditorActionOpts} opts
|
|
87
|
+
* @returns {Promise<void>}
|
|
88
|
+
*/
|
|
89
|
+
async function mobilePerformEditorAction(opts) {
|
|
90
|
+
const { action } = (0, utils_1.requireArgs)('action', opts);
|
|
91
|
+
await this.settingsApp.performEditorAction(action);
|
|
92
|
+
}
|
|
93
|
+
exports.mobilePerformEditorAction = mobilePerformEditorAction;
|
|
94
|
+
// #region Internal Helpers
|
|
95
|
+
/**
|
|
96
|
+
* @deprecated
|
|
97
|
+
* @this {import('../driver').AndroidDriver}
|
|
98
|
+
* @returns {Promise<string?>}
|
|
99
|
+
*/
|
|
100
|
+
async function initUnicodeKeyboard() {
|
|
101
|
+
this.log.debug('Enabling Unicode keyboard support');
|
|
102
|
+
// get the default IME so we can return back to it later if we want
|
|
103
|
+
const defaultIME = await this.adb.defaultIME();
|
|
104
|
+
this.log.debug(`Unsetting previous IME ${defaultIME}`);
|
|
105
|
+
this.log.debug(`Setting IME to '${io_appium_settings_1.UNICODE_IME}'`);
|
|
106
|
+
await this.adb.enableIME(io_appium_settings_1.UNICODE_IME);
|
|
107
|
+
await this.adb.setIME(io_appium_settings_1.UNICODE_IME);
|
|
108
|
+
return defaultIME;
|
|
109
|
+
}
|
|
110
|
+
exports.initUnicodeKeyboard = initUnicodeKeyboard;
|
|
111
|
+
/**
|
|
112
|
+
* @this {import('../driver').AndroidDriver}
|
|
113
|
+
* @returns {Promise<void>}
|
|
114
|
+
*/
|
|
115
|
+
async function hideKeyboardCompletely() {
|
|
116
|
+
this.log.debug(`Hiding the on-screen keyboard by setting IME to '${io_appium_settings_1.EMPTY_IME}'`);
|
|
117
|
+
await this.adb.enableIME(io_appium_settings_1.EMPTY_IME);
|
|
118
|
+
await this.adb.setIME(io_appium_settings_1.EMPTY_IME);
|
|
119
|
+
}
|
|
120
|
+
exports.hideKeyboardCompletely = hideKeyboardCompletely;
|
|
121
|
+
// #endregion
|
|
20
122
|
//# sourceMappingURL=keyboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../../../lib/commands/keyboard.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../../../lib/commands/keyboard.js"],"names":[],"mappings":";;;;;;AAAA,sDAAsD;AACtD,oDAAuB;AACvB,0CAAqC;AACrC,oCAAqC;AACrC,2DAA0D;AAE1D;;;GAGG;AACI,KAAK,UAAU,YAAY;IAChC,OAAO,MAAM,uCAAuC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,CAAC;AACjF,CAAC;AAFD,oCAEC;AAED;;;GAGG;AACI,KAAK,UAAU,eAAe;IACnC,MAAM,EAAC,eAAe,EAAC,GAAG,MAAM,uCAAuC,CAAC,CACtE,IAAI,CAAC,GAAG,CACT,CAAC,qBAAqB,EAAE,CAAC;IAC1B,OAAO,eAAe,CAAC;AACzB,CAAC;AALD,0CAKC;AAED;;;;GAIG;AACI,KAAK,UAAU,IAAI,CAAC,IAAI;IAC7B,4CAA4C;IAC5C,IAAI,GAAG,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC9C,MAAM,IAAI,CAAC,UAAU,CAAC;QACpB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,KAAK;KACf,CAAC,CAAC;AACL,CAAC;AAPD,oBAOC;AAED;;;;GAIG;AACI,KAAK,UAAU,UAAU,CAAC,MAAM;IACrC,MAAM,IAAI,eAAM,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;AAC1D,CAAC;AAFD,gCAEC;AAED;;;;;GAKG;AACI,KAAK,UAAU,QAAQ,CAAC,OAAO,EAAE,SAAS;IAC/C,iEAAiE;IACjE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;IAC9D,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,O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AAS,GAAG,CAAC,CAAC;IACjF,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,8BAAS,CAAC,CAAC;IACpC,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,8BAAS,CAAC,CAAC;AACnC,CAAC;AAJD,wDAIC;AAED,aAAa"}
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @this {AndroidDriver}
|
|
3
|
+
* @param {import('../types').LockOpts} opts
|
|
4
|
+
* @returns {Promise<void>}
|
|
5
|
+
*/
|
|
6
|
+
export function mobileLock(this: import("../../driver").AndroidDriver, opts?: import('../types').LockOpts): Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* @this {AndroidDriver}
|
|
9
|
+
* @param {number} [seconds]
|
|
10
|
+
* @returns {Promise<void>}
|
|
11
|
+
*/
|
|
12
|
+
export function lock(this: import("../../driver").AndroidDriver, seconds?: number | undefined): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* @this {AndroidDriver}
|
|
15
|
+
* @returns {Promise<boolean>}
|
|
16
|
+
*/
|
|
17
|
+
export function isLocked(this: import("../../driver").AndroidDriver): Promise<boolean>;
|
|
18
|
+
/**
|
|
19
|
+
* @this {AndroidDriver}
|
|
20
|
+
* @returns {Promise<void>}
|
|
21
|
+
*/
|
|
22
|
+
export function unlock(this: import("../../driver").AndroidDriver): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* @this {AndroidDriver}
|
|
25
|
+
* @param {import('../types').UnlockOptions} [opts={}]
|
|
26
|
+
* @returns {Promise<void>}
|
|
27
|
+
*/
|
|
28
|
+
export function mobileUnlock(this: import("../../driver").AndroidDriver, opts?: import("../types").UnlockOptions | undefined): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* @this {AndroidDriver}
|
|
31
|
+
* @param {AndroidDriverCaps?} [caps=null]
|
|
32
|
+
* @returns {Promise<void>}
|
|
33
|
+
*/
|
|
34
|
+
export function unlockWithOptions(this: import("../../driver").AndroidDriver, caps?: import("@appium/types").ConstraintsToCaps<{
|
|
35
|
+
readonly platformName: {
|
|
36
|
+
readonly isString: true;
|
|
37
|
+
readonly inclusionCaseInsensitive: readonly ["Android"];
|
|
38
|
+
readonly presence: true;
|
|
39
|
+
};
|
|
40
|
+
readonly deviceName: {
|
|
41
|
+
readonly isString: true;
|
|
42
|
+
};
|
|
43
|
+
readonly appActivity: {
|
|
44
|
+
readonly isString: true;
|
|
45
|
+
};
|
|
46
|
+
readonly appPackage: {
|
|
47
|
+
readonly isString: true;
|
|
48
|
+
};
|
|
49
|
+
readonly appWaitActivity: {
|
|
50
|
+
readonly isString: true;
|
|
51
|
+
};
|
|
52
|
+
readonly appWaitPackage: {
|
|
53
|
+
readonly isString: true;
|
|
54
|
+
};
|
|
55
|
+
readonly appWaitDuration: {
|
|
56
|
+
readonly isNumber: true;
|
|
57
|
+
};
|
|
58
|
+
readonly deviceReadyTimeout: {
|
|
59
|
+
readonly isNumber: true;
|
|
60
|
+
};
|
|
61
|
+
readonly androidDeviceReadyTimeout: {
|
|
62
|
+
readonly isNumber: true;
|
|
63
|
+
};
|
|
64
|
+
readonly androidDeviceSocket: {
|
|
65
|
+
readonly isString: true;
|
|
66
|
+
};
|
|
67
|
+
readonly androidInstallTimeout: {
|
|
68
|
+
readonly isNumber: true;
|
|
69
|
+
};
|
|
70
|
+
readonly adbPort: {
|
|
71
|
+
readonly isNumber: true;
|
|
72
|
+
};
|
|
73
|
+
readonly remoteAdbHost: {
|
|
74
|
+
readonly isString: true;
|
|
75
|
+
};
|
|
76
|
+
readonly adbExecTimeout: {
|
|
77
|
+
readonly isNumber: true;
|
|
78
|
+
};
|
|
79
|
+
readonly avd: {
|
|
80
|
+
readonly isString: true;
|
|
81
|
+
};
|
|
82
|
+
readonly avdLaunchTimeout: {
|
|
83
|
+
readonly isNumber: true;
|
|
84
|
+
};
|
|
85
|
+
readonly avdReadyTimeout: {
|
|
86
|
+
readonly isNumber: true;
|
|
87
|
+
};
|
|
88
|
+
readonly avdArgs: {};
|
|
89
|
+
readonly avdEnv: {
|
|
90
|
+
readonly isObject: true;
|
|
91
|
+
};
|
|
92
|
+
readonly useKeystore: {
|
|
93
|
+
readonly isBoolean: true;
|
|
94
|
+
};
|
|
95
|
+
readonly keystorePath: {
|
|
96
|
+
readonly isString: true;
|
|
97
|
+
};
|
|
98
|
+
readonly keystorePassword: {
|
|
99
|
+
readonly isString: true;
|
|
100
|
+
};
|
|
101
|
+
readonly keyAlias: {
|
|
102
|
+
readonly isString: true;
|
|
103
|
+
};
|
|
104
|
+
readonly keyPassword: {
|
|
105
|
+
readonly isString: true;
|
|
106
|
+
};
|
|
107
|
+
readonly webviewDevtoolsPort: {
|
|
108
|
+
readonly isNumber: true;
|
|
109
|
+
};
|
|
110
|
+
readonly ensureWebviewsHavePages: {
|
|
111
|
+
readonly isBoolean: true;
|
|
112
|
+
};
|
|
113
|
+
readonly enableWebviewDetailsCollection: {
|
|
114
|
+
readonly isBoolean: true;
|
|
115
|
+
};
|
|
116
|
+
readonly chromedriverPort: {
|
|
117
|
+
readonly isNumber: true;
|
|
118
|
+
};
|
|
119
|
+
readonly chromedriverPorts: {
|
|
120
|
+
readonly isArray: true;
|
|
121
|
+
};
|
|
122
|
+
readonly chromedriverArgs: {
|
|
123
|
+
readonly isObject: true;
|
|
124
|
+
};
|
|
125
|
+
readonly chromedriverExecutable: {
|
|
126
|
+
readonly isString: true;
|
|
127
|
+
};
|
|
128
|
+
readonly chromedriverExecutableDir: {
|
|
129
|
+
readonly isString: true;
|
|
130
|
+
};
|
|
131
|
+
readonly chromedriverChromeMappingFile: {
|
|
132
|
+
readonly isString: true;
|
|
133
|
+
};
|
|
134
|
+
readonly chromedriverUseSystemExecutable: {
|
|
135
|
+
readonly isBoolean: true;
|
|
136
|
+
};
|
|
137
|
+
readonly chromedriverDisableBuildCheck: {
|
|
138
|
+
readonly isBoolean: true;
|
|
139
|
+
};
|
|
140
|
+
readonly chromeLoggingPrefs: {
|
|
141
|
+
readonly isObject: true;
|
|
142
|
+
};
|
|
143
|
+
readonly autoWebviewTimeout: {
|
|
144
|
+
readonly isNumber: true;
|
|
145
|
+
};
|
|
146
|
+
readonly autoWebviewName: {
|
|
147
|
+
readonly isString: true;
|
|
148
|
+
};
|
|
149
|
+
readonly intentAction: {
|
|
150
|
+
readonly isString: true;
|
|
151
|
+
};
|
|
152
|
+
readonly intentCategory: {
|
|
153
|
+
readonly isString: true;
|
|
154
|
+
};
|
|
155
|
+
readonly intentFlags: {
|
|
156
|
+
readonly isString: true;
|
|
157
|
+
};
|
|
158
|
+
readonly optionalIntentArguments: {
|
|
159
|
+
readonly isString: true;
|
|
160
|
+
};
|
|
161
|
+
readonly dontStopAppOnReset: {
|
|
162
|
+
readonly isBoolean: true;
|
|
163
|
+
};
|
|
164
|
+
readonly unicodeKeyboard: {
|
|
165
|
+
readonly isBoolean: true;
|
|
166
|
+
};
|
|
167
|
+
readonly hideKeyboard: {
|
|
168
|
+
readonly isBoolean: true;
|
|
169
|
+
};
|
|
170
|
+
readonly noSign: {
|
|
171
|
+
readonly isBoolean: true;
|
|
172
|
+
};
|
|
173
|
+
readonly recreateChromeDriverSessions: {
|
|
174
|
+
readonly isBoolean: false;
|
|
175
|
+
};
|
|
176
|
+
readonly autoLaunch: {
|
|
177
|
+
readonly isBoolean: true;
|
|
178
|
+
};
|
|
179
|
+
readonly nativeWebScreenshot: {
|
|
180
|
+
readonly isBoolean: true;
|
|
181
|
+
};
|
|
182
|
+
readonly clearSystemFiles: {
|
|
183
|
+
readonly isBoolean: true;
|
|
184
|
+
};
|
|
185
|
+
readonly extractChromeAndroidPackageFromContextName: {
|
|
186
|
+
readonly isBoolean: true;
|
|
187
|
+
};
|
|
188
|
+
readonly autoGrantPermissions: {
|
|
189
|
+
readonly isBoolean: true;
|
|
190
|
+
};
|
|
191
|
+
readonly networkSpeed: {
|
|
192
|
+
readonly isString: true;
|
|
193
|
+
};
|
|
194
|
+
readonly gpsEnabled: {
|
|
195
|
+
readonly isBoolean: true;
|
|
196
|
+
};
|
|
197
|
+
readonly isHeadless: {
|
|
198
|
+
readonly isBoolean: true;
|
|
199
|
+
};
|
|
200
|
+
readonly showChromedriverLog: {
|
|
201
|
+
readonly isBoolean: true;
|
|
202
|
+
};
|
|
203
|
+
readonly skipUnlock: {
|
|
204
|
+
readonly isBoolean: true;
|
|
205
|
+
};
|
|
206
|
+
readonly clearDeviceLogsOnStart: {
|
|
207
|
+
readonly isBoolean: true;
|
|
208
|
+
};
|
|
209
|
+
readonly unlockType: {
|
|
210
|
+
readonly isString: true;
|
|
211
|
+
};
|
|
212
|
+
readonly unlockKey: {
|
|
213
|
+
readonly isString: true;
|
|
214
|
+
};
|
|
215
|
+
readonly unlockStrategy: {
|
|
216
|
+
readonly isString: true;
|
|
217
|
+
readonly inclusionCaseInsensitive: readonly ["locksettings", "uiautomator"];
|
|
218
|
+
};
|
|
219
|
+
readonly otherApps: {
|
|
220
|
+
readonly isString: true;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* @typedef {import('@appium/types').Capabilities<import('../../constraints').AndroidDriverConstraints>} AndroidDriverCaps
|
|
224
|
+
* @typedef {import('../../driver').AndroidDriver} AndroidDriver
|
|
225
|
+
*/
|
|
226
|
+
readonly uninstallOtherPackages: {
|
|
227
|
+
readonly isString: true;
|
|
228
|
+
};
|
|
229
|
+
readonly allowTestPackages: {
|
|
230
|
+
readonly isBoolean: true;
|
|
231
|
+
};
|
|
232
|
+
readonly pageLoadStrategy: {
|
|
233
|
+
readonly isString: true;
|
|
234
|
+
};
|
|
235
|
+
readonly localeScript: {
|
|
236
|
+
readonly isString: true;
|
|
237
|
+
};
|
|
238
|
+
readonly skipDeviceInitialization: {
|
|
239
|
+
readonly isBoolean: true;
|
|
240
|
+
};
|
|
241
|
+
readonly remoteAppsCacheLimit: {
|
|
242
|
+
readonly isNumber: true;
|
|
243
|
+
};
|
|
244
|
+
readonly buildToolsVersion: {
|
|
245
|
+
readonly isString: true;
|
|
246
|
+
};
|
|
247
|
+
readonly skipLogcatCapture: {
|
|
248
|
+
readonly isBoolean: true;
|
|
249
|
+
};
|
|
250
|
+
readonly chromeOptions: {
|
|
251
|
+
readonly isObject: true;
|
|
252
|
+
};
|
|
253
|
+
readonly enablePerformanceLogging: {
|
|
254
|
+
readonly isBoolean: true;
|
|
255
|
+
};
|
|
256
|
+
readonly userProfile: {
|
|
257
|
+
readonly isNumber: true;
|
|
258
|
+
};
|
|
259
|
+
readonly browserName: {
|
|
260
|
+
readonly isString: true;
|
|
261
|
+
};
|
|
262
|
+
readonly enforceAppInstall: {
|
|
263
|
+
readonly isBoolean: true;
|
|
264
|
+
};
|
|
265
|
+
readonly suppressKillServer: {
|
|
266
|
+
readonly isBoolean: true;
|
|
267
|
+
};
|
|
268
|
+
readonly allowOfflineDevices: {
|
|
269
|
+
readonly isBoolean: true;
|
|
270
|
+
};
|
|
271
|
+
readonly ignoreHiddenApiPolicyError: {
|
|
272
|
+
readonly isBoolean: true;
|
|
273
|
+
};
|
|
274
|
+
readonly unlockSuccessTimeout: {
|
|
275
|
+
readonly isNumber: true;
|
|
276
|
+
};
|
|
277
|
+
readonly mockLocationApp: {
|
|
278
|
+
readonly isString: true;
|
|
279
|
+
};
|
|
280
|
+
readonly logcatFormat: {
|
|
281
|
+
readonly isString: true;
|
|
282
|
+
};
|
|
283
|
+
readonly logcatFilterSpecs: {
|
|
284
|
+
readonly isArray: true;
|
|
285
|
+
};
|
|
286
|
+
readonly allowDelayAdb: {
|
|
287
|
+
readonly isBoolean: true;
|
|
288
|
+
};
|
|
289
|
+
readonly ignoreUnimportantViews: {
|
|
290
|
+
readonly isBoolean: true;
|
|
291
|
+
};
|
|
292
|
+
readonly disableWindowAnimation: {
|
|
293
|
+
readonly isBoolean: true;
|
|
294
|
+
};
|
|
295
|
+
readonly appWaitForLaunch: {
|
|
296
|
+
readonly isBoolean: true;
|
|
297
|
+
};
|
|
298
|
+
}> | null | undefined): Promise<void>;
|
|
299
|
+
export type AndroidDriverCaps = import('@appium/types').Capabilities<import('../../constraints').AndroidDriverConstraints>;
|
|
300
|
+
export type AndroidDriver = import('../../driver').AndroidDriver;
|
|
301
|
+
//# sourceMappingURL=exports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../../lib/commands/lock/exports.js"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,8EAHW,OAAO,UAAU,EAAE,QAAQ,GACzB,QAAQ,IAAI,CAAC,CAKzB;AAED;;;;GAIG;AACH,gGAFa,QAAQ,IAAI,CAAC,CAczB;AAED;;;GAGG;AACH,sEAFa,QAAQ,OAAO,CAAC,CAI5B;AAED;;;GAGG;AACH,oEAFa,QAAQ,IAAI,CAAC,CAIzB;AAED;;;;GAIG;AACH,+HAFa,QAAQ,IAAI,CAAC,CAczB;AAID;;;;GAIG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4CA;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAjDU,QAAQ,IAAI,CAAC,CA0CzB;gCAKY,OAAO,eAAe,EAAE,YAAY,CAAC,OAAO,mBAAmB,EAAE,wBAAwB,CAAC;4BAC1F,OAAO,cAAc,EAAE,aAAa"}
|