appium-android-driver 5.14.0-alpha.0 → 5.14.0-alpha2

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.
Files changed (88) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/build/index.d.ts +282 -0
  3. package/build/index.d.ts.map +1 -0
  4. package/build/index.js +34 -20
  5. package/build/index.js.map +1 -0
  6. package/build/lib/android-helpers.d.ts +136 -0
  7. package/build/lib/android-helpers.d.ts.map +1 -0
  8. package/build/lib/android-helpers.js +855 -0
  9. package/build/lib/android-helpers.js.map +1 -0
  10. package/build/lib/bootstrap.d.ts +2 -2
  11. package/build/lib/commands/actions.d.ts.map +1 -1
  12. package/build/lib/commands/actions.js +4 -0
  13. package/build/lib/commands/actions.js.map +1 -1
  14. package/build/lib/commands/context.js +1 -1
  15. package/build/lib/commands/context.js.map +1 -1
  16. package/build/lib/commands/coverage.d.ts +5 -0
  17. package/build/lib/commands/coverage.d.ts.map +1 -0
  18. package/build/lib/commands/coverage.js +19 -0
  19. package/build/lib/commands/coverage.js.map +1 -0
  20. package/build/lib/commands/execute.d.ts.map +1 -1
  21. package/build/lib/commands/execute.js +4 -3
  22. package/build/lib/commands/execute.js.map +1 -1
  23. package/build/lib/commands/find.d.ts +4 -1
  24. package/build/lib/commands/find.d.ts.map +1 -1
  25. package/build/lib/commands/find.js +1 -0
  26. package/build/lib/commands/find.js.map +1 -1
  27. package/build/lib/commands/index.d.ts +27 -47
  28. package/build/lib/commands/index.d.ts.map +1 -1
  29. package/build/lib/commands/index.js.map +1 -1
  30. package/build/lib/commands/log.d.ts.map +1 -1
  31. package/build/lib/commands/log.js +2 -2
  32. package/build/lib/commands/log.js.map +1 -1
  33. package/build/lib/commands/mixins.d.ts +11 -6
  34. package/build/lib/commands/mixins.d.ts.map +1 -1
  35. package/build/lib/commands/mixins.js.map +1 -1
  36. package/build/lib/commands/performance.d.ts +4 -4
  37. package/build/lib/commands/performance.d.ts.map +1 -1
  38. package/build/lib/commands/types.d.ts +8 -1
  39. package/build/lib/commands/types.d.ts.map +1 -1
  40. package/build/lib/constraints.d.ts +289 -384
  41. package/build/lib/constraints.d.ts.map +1 -1
  42. package/build/lib/constraints.js +2 -9
  43. package/build/lib/constraints.js.map +1 -1
  44. package/build/lib/desired-caps.d.ts +353 -0
  45. package/build/lib/desired-caps.d.ts.map +1 -0
  46. package/build/lib/desired-caps.js +299 -0
  47. package/build/lib/desired-caps.js.map +1 -0
  48. package/build/lib/driver.d.ts +50 -403
  49. package/build/lib/driver.d.ts.map +1 -1
  50. package/build/lib/driver.js +67 -127
  51. package/build/lib/driver.js.map +1 -1
  52. package/build/lib/helpers/android.d.ts +11 -11
  53. package/build/lib/helpers/android.d.ts.map +1 -1
  54. package/build/lib/helpers/android.js.map +1 -1
  55. package/build/lib/helpers/unlock.d.ts +2 -1
  56. package/build/lib/helpers/unlock.d.ts.map +1 -1
  57. package/build/lib/helpers/unlock.js.map +1 -1
  58. package/build/lib/index.d.ts +9 -0
  59. package/build/lib/index.d.ts.map +1 -0
  60. package/build/lib/index.js +37 -0
  61. package/build/lib/index.js.map +1 -0
  62. package/build/lib/uiautomator.d.ts +6 -6
  63. package/build/lib/unlock-helpers.d.ts +38 -0
  64. package/build/lib/unlock-helpers.d.ts.map +1 -0
  65. package/build/lib/unlock-helpers.js +266 -0
  66. package/build/lib/unlock-helpers.js.map +1 -0
  67. package/build/lib/webview-helpers.d.ts +223 -0
  68. package/build/lib/webview-helpers.d.ts.map +1 -0
  69. package/build/lib/webview-helpers.js +530 -0
  70. package/build/lib/webview-helpers.js.map +1 -0
  71. package/lib/commands/actions.js +5 -0
  72. package/lib/commands/context.js +1 -1
  73. package/lib/commands/execute.js +7 -3
  74. package/lib/commands/find.ts +2 -0
  75. package/lib/commands/{index.js → index.ts} +2 -0
  76. package/lib/commands/log.js +6 -4
  77. package/lib/commands/mixins.ts +11 -7
  78. package/lib/commands/types.ts +9 -1
  79. package/lib/{constraints.js → constraints.ts} +6 -9
  80. package/lib/{driver.js → driver.ts} +143 -183
  81. package/lib/helpers/android.ts +31 -14
  82. package/lib/helpers/unlock.ts +2 -1
  83. package/lib/index.ts +18 -0
  84. package/package.json +14 -14
  85. package/build/lib/commands/mixin.d.ts +0 -3
  86. package/build/lib/commands/mixin.d.ts.map +0 -1
  87. package/build/lib/commands/mixin.js +0 -6
  88. package/build/lib/commands/mixin.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"constraints.d.ts","sourceRoot":"","sources":["../../lib/constraints.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"constraints.d.ts","sourceRoot":"","sources":["../../lib/constraints.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwSP,CAAC;AAEjC,eAAe,0BAA0B,CAAC;AAE1C,MAAM,MAAM,wBAAwB,GAAG,OAAO,0BAA0B,CAAC"}
@@ -1,21 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ANDROID_DRIVER_CONSTRAINTS = void 0;
4
- exports.ANDROID_DRIVER_CONSTRAINTS = ({
4
+ exports.ANDROID_DRIVER_CONSTRAINTS = {
5
5
  platformName: {
6
6
  isString: true,
7
7
  inclusionCaseInsensitive: ['Android'],
8
8
  presence: true,
9
9
  },
10
- /**
11
- * XXX: this overrides BaseDriver's constraint, since this driver seems to require the deviceName cap
12
- */
13
10
  deviceName: {
14
11
  isString: true,
15
- presence: true,
16
- },
17
- app: {
18
- isString: true,
19
12
  },
20
13
  appActivity: {
21
14
  isString: true,
@@ -302,6 +295,6 @@ exports.ANDROID_DRIVER_CONSTRAINTS = ({
302
295
  appWaitForLaunch: {
303
296
  isBoolean: true,
304
297
  },
305
- });
298
+ };
306
299
  exports.default = exports.ANDROID_DRIVER_CONSTRAINTS;
307
300
  //# sourceMappingURL=constraints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constraints.js","sourceRoot":"","sources":["../../lib/constraints.js"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAwB,CAAC;IAC9D,YAAY,EAAE;QACZ,QAAQ,EAAE,IAAI;QACd,wBAAwB,EAAE,CAAC,SAAS,CAAC;QACrC,QAAQ,EAAE,IAAI;KACf;IACD;;OAEG;IACH,UAAU,EAAE;QACV,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;KACf;IACD,GAAG,EAAE;QACH,QAAQ,EAAE,IAAI;KACf;IACD,WAAW,EAAE;QACX,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,IAAI;KACf;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,IAAI;KACf;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,IAAI;KACf;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,IAAI;KACf;IACD,kBAAkB,EAAE;QAClB,QAAQ,EAAE,IAAI;KACf;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,IAAI;KACf;IACD,yBAAyB,EAAE;QACzB,QAAQ,EAAE,IAAI;KACf;IACD,mBAAmB,EAAE;QACnB,QAAQ,EAAE,IAAI;KACf;IACD,qBAAqB,EAAE;QACrB,QAAQ,EAAE,IAAI;KACf;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,IAAI;KACf;IACD,aAAa,EAAE;QACb,QAAQ,EAAE,IAAI;KACf;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,IAAI;KACf;IACD,G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AE;QACd,SAAS,EAAE,IAAI;KAChB;IACD,yBAAyB,EAAE;QACzB,SAAS,EAAE,IAAI;KAChB;IACD,sBAAsB,EAAE;QACtB,SAAS,EAAE,IAAI;KAChB;IACD,aAAa,EAAE;QACb,QAAQ,EAAE,IAAI;KACf;IACD,gBAAgB,EAAE;QAChB,SAAS,EAAE,IAAI;KAChB;CACF,CAAC,CAAC;AAEH,kBAAe,kCAA0B,CAAC"}
1
+ {"version":3,"file":"constraints.js","sourceRoot":"","sources":["../../lib/constraints.ts"],"names":[],"mappings":";;;AAEa,QAAA,0BAA0B,GAAG;IACxC,YAAY,EAAE;QACZ,QAAQ,EAAE,IAAI;QACd,wBAAwB,EAAE,CAAC,SAAS,CAAC;QACrC,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,IAAI;KACf;IACD,WAAW,EAAE;QACX,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,IAAI;KACf;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,IAAI;KACf;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,IAAI;KACf;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,IAAI;KACf;IACD,kBAAkB,EAAE;QAClB,QAAQ,EAAE,IAAI;KACf;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,IAAI;KACf;IACD,yBAAyB,EAAE;QACzB,QAAQ,EAAE,IAAI;KACf;IACD,mBAAmB,EAAE;QACnB,QAAQ,EAAE,IAAI;KACf;IACD,qBAAqB,EAAE;QACrB,QAAQ,EAAE,IAAI;KACf;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,IAAI;KACf;IACD,aAAa,EAAE;QACb,QAAQ,EAAE,IAAI;KACf;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,IAAI;KACf;IACD,GAAG,EAAE;QACH,QAAQ,EAAE,IAAI;KACf;IACD,gBAAgB,EAAE;QAChB,QAAQ,EAAE,IAAI;KACf;I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AsB,EAAE;QACtB,SAAS,EAAE,IAAI;KAChB;IACD,aAAa,EAAE;QACb,QAAQ,EAAE,IAAI;KACf;IACD,gBAAgB,EAAE;QAChB,SAAS,EAAE,IAAI;KAChB;CAC6B,CAAC;AAEjC,kBAAe,kCAA0B,CAAC"}
@@ -0,0 +1,353 @@
1
+ export default desiredCapConstraints;
2
+ declare let desiredCapConstraints: {};
3
+ export namespace commonCapConstraints {
4
+ namespace platformName {
5
+ const isString: boolean;
6
+ const inclusionCaseInsensitive: string[];
7
+ const presence: boolean;
8
+ }
9
+ namespace app {
10
+ const isString_1: boolean;
11
+ export { isString_1 as isString };
12
+ }
13
+ namespace appActivity {
14
+ const isString_2: boolean;
15
+ export { isString_2 as isString };
16
+ }
17
+ namespace appPackage {
18
+ const isString_3: boolean;
19
+ export { isString_3 as isString };
20
+ }
21
+ namespace appWaitActivity {
22
+ const isString_4: boolean;
23
+ export { isString_4 as isString };
24
+ }
25
+ namespace appWaitPackage {
26
+ const isString_5: boolean;
27
+ export { isString_5 as isString };
28
+ }
29
+ namespace appWaitDuration {
30
+ const isNumber: boolean;
31
+ }
32
+ namespace deviceReadyTimeout {
33
+ const isNumber_1: boolean;
34
+ export { isNumber_1 as isNumber };
35
+ }
36
+ namespace androidCoverage {
37
+ const isString_6: boolean;
38
+ export { isString_6 as isString };
39
+ }
40
+ namespace androidDeviceReadyTimeout {
41
+ const isNumber_2: boolean;
42
+ export { isNumber_2 as isNumber };
43
+ }
44
+ namespace androidDeviceSocket {
45
+ const isString_7: boolean;
46
+ export { isString_7 as isString };
47
+ }
48
+ namespace androidInstallTimeout {
49
+ const isNumber_3: boolean;
50
+ export { isNumber_3 as isNumber };
51
+ }
52
+ namespace adbPort {
53
+ const isNumber_4: boolean;
54
+ export { isNumber_4 as isNumber };
55
+ }
56
+ namespace remoteAdbHost {
57
+ const isString_8: boolean;
58
+ export { isString_8 as isString };
59
+ }
60
+ namespace adbExecTimeout {
61
+ const isNumber_5: boolean;
62
+ export { isNumber_5 as isNumber };
63
+ }
64
+ namespace avd {
65
+ const isString_9: boolean;
66
+ export { isString_9 as isString };
67
+ }
68
+ namespace avdLaunchTimeout {
69
+ const isNumber_6: boolean;
70
+ export { isNumber_6 as isNumber };
71
+ }
72
+ namespace avdReadyTimeout {
73
+ const isNumber_7: boolean;
74
+ export { isNumber_7 as isNumber };
75
+ }
76
+ const avdArgs: {};
77
+ namespace avdEnv {
78
+ const isObject: boolean;
79
+ }
80
+ namespace useKeystore {
81
+ const isBoolean: boolean;
82
+ }
83
+ namespace keystorePath {
84
+ const isString_10: boolean;
85
+ export { isString_10 as isString };
86
+ }
87
+ namespace keystorePassword {
88
+ const isString_11: boolean;
89
+ export { isString_11 as isString };
90
+ }
91
+ namespace keyAlias {
92
+ const isString_12: boolean;
93
+ export { isString_12 as isString };
94
+ }
95
+ namespace keyPassword {
96
+ const isString_13: boolean;
97
+ export { isString_13 as isString };
98
+ }
99
+ namespace webviewDevtoolsPort {
100
+ const isNumber_8: boolean;
101
+ export { isNumber_8 as isNumber };
102
+ }
103
+ namespace ensureWebviewsHavePages {
104
+ const isBoolean_1: boolean;
105
+ export { isBoolean_1 as isBoolean };
106
+ }
107
+ namespace enableWebviewDetailsCollection {
108
+ const isBoolean_2: boolean;
109
+ export { isBoolean_2 as isBoolean };
110
+ }
111
+ namespace chromeDriverPort {
112
+ const isNumber_9: boolean;
113
+ export { isNumber_9 as isNumber };
114
+ }
115
+ namespace chromedriverPort {
116
+ const isNumber_10: boolean;
117
+ export { isNumber_10 as isNumber };
118
+ }
119
+ namespace chromedriverPorts {
120
+ const isArray: boolean;
121
+ }
122
+ namespace chromedriverArgs {
123
+ const isObject_1: boolean;
124
+ export { isObject_1 as isObject };
125
+ }
126
+ namespace chromedriverExecutable {
127
+ const isString_14: boolean;
128
+ export { isString_14 as isString };
129
+ }
130
+ namespace chromedriverExecutableDir {
131
+ const isString_15: boolean;
132
+ export { isString_15 as isString };
133
+ }
134
+ namespace chromedriverChromeMappingFile {
135
+ const isString_16: boolean;
136
+ export { isString_16 as isString };
137
+ }
138
+ namespace chromedriverUseSystemExecutable {
139
+ const isBoolean_3: boolean;
140
+ export { isBoolean_3 as isBoolean };
141
+ }
142
+ namespace chromedriverDisableBuildCheck {
143
+ const isBoolean_4: boolean;
144
+ export { isBoolean_4 as isBoolean };
145
+ }
146
+ namespace chromeLoggingPrefs {
147
+ const isObject_2: boolean;
148
+ export { isObject_2 as isObject };
149
+ }
150
+ namespace autoWebviewTimeout {
151
+ const isNumber_11: boolean;
152
+ export { isNumber_11 as isNumber };
153
+ }
154
+ namespace autoWebviewName {
155
+ const isString_17: boolean;
156
+ export { isString_17 as isString };
157
+ }
158
+ namespace intentAction {
159
+ const isString_18: boolean;
160
+ export { isString_18 as isString };
161
+ }
162
+ namespace intentCategory {
163
+ const isString_19: boolean;
164
+ export { isString_19 as isString };
165
+ }
166
+ namespace intentFlags {
167
+ const isString_20: boolean;
168
+ export { isString_20 as isString };
169
+ }
170
+ namespace optionalIntentArguments {
171
+ const isString_21: boolean;
172
+ export { isString_21 as isString };
173
+ }
174
+ namespace dontStopAppOnReset {
175
+ const isBoolean_5: boolean;
176
+ export { isBoolean_5 as isBoolean };
177
+ }
178
+ namespace unicodeKeyboard {
179
+ const isBoolean_6: boolean;
180
+ export { isBoolean_6 as isBoolean };
181
+ }
182
+ namespace resetKeyboard {
183
+ const isBoolean_7: boolean;
184
+ export { isBoolean_7 as isBoolean };
185
+ }
186
+ namespace noSign {
187
+ const isBoolean_8: boolean;
188
+ export { isBoolean_8 as isBoolean };
189
+ }
190
+ namespace recreateChromeDriverSessions {
191
+ const isBoolean_9: boolean;
192
+ export { isBoolean_9 as isBoolean };
193
+ }
194
+ namespace autoLaunch {
195
+ const isBoolean_10: boolean;
196
+ export { isBoolean_10 as isBoolean };
197
+ }
198
+ namespace nativeWebScreenshot {
199
+ const isBoolean_11: boolean;
200
+ export { isBoolean_11 as isBoolean };
201
+ }
202
+ namespace androidScreenshotPath {
203
+ const isString_22: boolean;
204
+ export { isString_22 as isString };
205
+ }
206
+ namespace androidInstallPath {
207
+ const isString_23: boolean;
208
+ export { isString_23 as isString };
209
+ }
210
+ namespace clearSystemFiles {
211
+ const isBoolean_12: boolean;
212
+ export { isBoolean_12 as isBoolean };
213
+ }
214
+ namespace extractChromeAndroidPackageFromContextName {
215
+ const isBoolean_13: boolean;
216
+ export { isBoolean_13 as isBoolean };
217
+ }
218
+ namespace autoGrantPermissions {
219
+ const isBoolean_14: boolean;
220
+ export { isBoolean_14 as isBoolean };
221
+ }
222
+ namespace sharedPreferences {
223
+ const isObject_3: boolean;
224
+ export { isObject_3 as isObject };
225
+ }
226
+ namespace networkSpeed {
227
+ const isString_24: boolean;
228
+ export { isString_24 as isString };
229
+ }
230
+ namespace gpsEnabled {
231
+ const isBoolean_15: boolean;
232
+ export { isBoolean_15 as isBoolean };
233
+ }
234
+ namespace isHeadless {
235
+ const isBoolean_16: boolean;
236
+ export { isBoolean_16 as isBoolean };
237
+ }
238
+ namespace showChromedriverLog {
239
+ const isBoolean_17: boolean;
240
+ export { isBoolean_17 as isBoolean };
241
+ }
242
+ namespace skipUnlock {
243
+ const isBoolean_18: boolean;
244
+ export { isBoolean_18 as isBoolean };
245
+ }
246
+ namespace clearDeviceLogsOnStart {
247
+ const isBoolean_19: boolean;
248
+ export { isBoolean_19 as isBoolean };
249
+ }
250
+ namespace unlockType {
251
+ const isString_25: boolean;
252
+ export { isString_25 as isString };
253
+ }
254
+ namespace unlockKey {
255
+ const isString_26: boolean;
256
+ export { isString_26 as isString };
257
+ }
258
+ namespace unlockStrategy {
259
+ const isString_27: boolean;
260
+ export { isString_27 as isString };
261
+ const inclusionCaseInsensitive_1: string[];
262
+ export { inclusionCaseInsensitive_1 as inclusionCaseInsensitive };
263
+ }
264
+ namespace otherApps {
265
+ const isString_28: boolean;
266
+ export { isString_28 as isString };
267
+ }
268
+ namespace uninstallOtherPackages {
269
+ const isString_29: boolean;
270
+ export { isString_29 as isString };
271
+ }
272
+ namespace allowTestPackages {
273
+ const isBoolean_20: boolean;
274
+ export { isBoolean_20 as isBoolean };
275
+ }
276
+ namespace pageLoadStrategy {
277
+ const isString_30: boolean;
278
+ export { isString_30 as isString };
279
+ }
280
+ namespace localeScript {
281
+ const isString_31: boolean;
282
+ export { isString_31 as isString };
283
+ }
284
+ namespace skipDeviceInitialization {
285
+ const isBoolean_21: boolean;
286
+ export { isBoolean_21 as isBoolean };
287
+ }
288
+ namespace remoteAppsCacheLimit {
289
+ const isNumber_12: boolean;
290
+ export { isNumber_12 as isNumber };
291
+ }
292
+ namespace buildToolsVersion {
293
+ const isString_32: boolean;
294
+ export { isString_32 as isString };
295
+ }
296
+ namespace skipLogcatCapture {
297
+ const isBoolean_22: boolean;
298
+ export { isBoolean_22 as isBoolean };
299
+ }
300
+ namespace chromeOptions {
301
+ const isObject_4: boolean;
302
+ export { isObject_4 as isObject };
303
+ }
304
+ namespace enablePerformanceLogging {
305
+ const isBoolean_23: boolean;
306
+ export { isBoolean_23 as isBoolean };
307
+ }
308
+ namespace userProfile {
309
+ const isNumber_13: boolean;
310
+ export { isNumber_13 as isNumber };
311
+ }
312
+ namespace browserName {
313
+ const isString_33: boolean;
314
+ export { isString_33 as isString };
315
+ }
316
+ namespace enforceAppInstall {
317
+ const isBoolean_24: boolean;
318
+ export { isBoolean_24 as isBoolean };
319
+ }
320
+ namespace suppressKillServer {
321
+ const isBoolean_25: boolean;
322
+ export { isBoolean_25 as isBoolean };
323
+ }
324
+ namespace allowOfflineDevices {
325
+ const isBoolean_26: boolean;
326
+ export { isBoolean_26 as isBoolean };
327
+ }
328
+ namespace ignoreHiddenApiPolicyError {
329
+ const isBoolean_27: boolean;
330
+ export { isBoolean_27 as isBoolean };
331
+ }
332
+ namespace unlockSuccessTimeout {
333
+ const isNumber_14: boolean;
334
+ export { isNumber_14 as isNumber };
335
+ }
336
+ namespace mockLocationApp {
337
+ const isString_34: boolean;
338
+ export { isString_34 as isString };
339
+ }
340
+ namespace logcatFormat {
341
+ const isString_35: boolean;
342
+ export { isString_35 as isString };
343
+ }
344
+ namespace logcatFilterSpecs {
345
+ const isArray_1: boolean;
346
+ export { isArray_1 as isArray };
347
+ }
348
+ namespace allowDelayAdb {
349
+ const isBoolean_28: boolean;
350
+ export { isBoolean_28 as isBoolean };
351
+ }
352
+ }
353
+ //# sourceMappingURL=desired-caps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"desired-caps.d.ts","sourceRoot":"","sources":["../../lib/desired-caps.js"],"names":[],"mappings":";AAqSA,sCAA+B"}
@@ -0,0 +1,299 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commonCapConstraints = void 0;
4
+ let commonCapConstraints = {
5
+ platformName: {
6
+ isString: true,
7
+ inclusionCaseInsensitive: ['Android'],
8
+ presence: true
9
+ },
10
+ app: {
11
+ isString: true
12
+ },
13
+ appActivity: {
14
+ isString: true
15
+ },
16
+ appPackage: {
17
+ isString: true
18
+ },
19
+ appWaitActivity: {
20
+ isString: true
21
+ },
22
+ appWaitPackage: {
23
+ isString: true
24
+ },
25
+ appWaitDuration: {
26
+ isNumber: true
27
+ },
28
+ deviceReadyTimeout: {
29
+ isNumber: true
30
+ },
31
+ androidCoverage: {
32
+ isString: true
33
+ },
34
+ androidDeviceReadyTimeout: {
35
+ isNumber: true
36
+ },
37
+ androidDeviceSocket: {
38
+ isString: true
39
+ },
40
+ androidInstallTimeout: {
41
+ isNumber: true
42
+ },
43
+ adbPort: {
44
+ isNumber: true
45
+ },
46
+ remoteAdbHost: {
47
+ isString: true
48
+ },
49
+ adbExecTimeout: {
50
+ isNumber: true
51
+ },
52
+ avd: {
53
+ isString: true
54
+ },
55
+ avdLaunchTimeout: {
56
+ isNumber: true
57
+ },
58
+ avdReadyTimeout: {
59
+ isNumber: true
60
+ },
61
+ avdArgs: {
62
+ // could be a string or an array
63
+ },
64
+ avdEnv: {
65
+ isObject: true
66
+ },
67
+ useKeystore: {
68
+ isBoolean: true
69
+ },
70
+ keystorePath: {
71
+ isString: true
72
+ },
73
+ keystorePassword: {
74
+ isString: true
75
+ },
76
+ keyAlias: {
77
+ isString: true
78
+ },
79
+ keyPassword: {
80
+ isString: true
81
+ },
82
+ webviewDevtoolsPort: {
83
+ isNumber: true
84
+ },
85
+ ensureWebviewsHavePages: {
86
+ isBoolean: true
87
+ },
88
+ enableWebviewDetailsCollection: {
89
+ isBoolean: true
90
+ },
91
+ // this one is deprecated
92
+ chromeDriverPort: {
93
+ isNumber: true
94
+ },
95
+ // duplicate of above with better spelling
96
+ chromedriverPort: {
97
+ isNumber: true
98
+ },
99
+ chromedriverPorts: {
100
+ isArray: true
101
+ },
102
+ chromedriverArgs: {
103
+ isObject: true,
104
+ },
105
+ chromedriverExecutable: {
106
+ isString: true
107
+ },
108
+ chromedriverExecutableDir: {
109
+ isString: true
110
+ },
111
+ chromedriverChromeMappingFile: {
112
+ isString: true
113
+ },
114
+ chromedriverUseSystemExecutable: {
115
+ isBoolean: true
116
+ },
117
+ chromedriverDisableBuildCheck: {
118
+ isBoolean: true
119
+ },
120
+ chromeLoggingPrefs: {
121
+ isObject: true
122
+ },
123
+ autoWebviewTimeout: {
124
+ isNumber: true
125
+ },
126
+ autoWebviewName: {
127
+ isString: true
128
+ },
129
+ intentAction: {
130
+ isString: true
131
+ },
132
+ intentCategory: {
133
+ isString: true
134
+ },
135
+ intentFlags: {
136
+ isString: true
137
+ },
138
+ optionalIntentArguments: {
139
+ isString: true
140
+ },
141
+ dontStopAppOnReset: {
142
+ isBoolean: true
143
+ },
144
+ unicodeKeyboard: {
145
+ isBoolean: true
146
+ },
147
+ resetKeyboard: {
148
+ isBoolean: true
149
+ },
150
+ noSign: {
151
+ isBoolean: true
152
+ },
153
+ recreateChromeDriverSessions: {
154
+ isBoolean: false
155
+ },
156
+ autoLaunch: {
157
+ isBoolean: true
158
+ },
159
+ nativeWebScreenshot: {
160
+ isBoolean: true
161
+ },
162
+ androidScreenshotPath: {
163
+ isString: true
164
+ },
165
+ androidInstallPath: {
166
+ isString: true
167
+ },
168
+ clearSystemFiles: {
169
+ isBoolean: true
170
+ },
171
+ extractChromeAndroidPackageFromContextName: {
172
+ isBoolean: true
173
+ },
174
+ autoGrantPermissions: {
175
+ isBoolean: true
176
+ },
177
+ sharedPreferences: {
178
+ isObject: true
179
+ },
180
+ networkSpeed: {
181
+ isString: true
182
+ },
183
+ gpsEnabled: {
184
+ isBoolean: true
185
+ },
186
+ isHeadless: {
187
+ isBoolean: true
188
+ },
189
+ showChromedriverLog: {
190
+ isBoolean: true
191
+ },
192
+ skipUnlock: {
193
+ isBoolean: true
194
+ },
195
+ clearDeviceLogsOnStart: {
196
+ isBoolean: true
197
+ },
198
+ unlockType: {
199
+ isString: true
200
+ },
201
+ unlockKey: {
202
+ isString: true
203
+ },
204
+ unlockStrategy: {
205
+ isString: true,
206
+ inclusionCaseInsensitive: ['locksettings', 'uiautomator'],
207
+ },
208
+ otherApps: {
209
+ isString: true
210
+ },
211
+ uninstallOtherPackages: {
212
+ isString: true
213
+ },
214
+ allowTestPackages: {
215
+ isBoolean: true
216
+ },
217
+ pageLoadStrategy: {
218
+ isString: true
219
+ },
220
+ localeScript: {
221
+ isString: true
222
+ },
223
+ skipDeviceInitialization: {
224
+ isBoolean: true
225
+ },
226
+ remoteAppsCacheLimit: {
227
+ isNumber: true
228
+ },
229
+ buildToolsVersion: {
230
+ isString: true
231
+ },
232
+ skipLogcatCapture: {
233
+ isBoolean: true
234
+ },
235
+ chromeOptions: {
236
+ isObject: true
237
+ },
238
+ enablePerformanceLogging: {
239
+ isBoolean: true
240
+ },
241
+ userProfile: {
242
+ isNumber: true
243
+ },
244
+ browserName: {
245
+ isString: true
246
+ },
247
+ enforceAppInstall: {
248
+ isBoolean: true
249
+ },
250
+ suppressKillServer: {
251
+ isBoolean: true
252
+ },
253
+ allowOfflineDevices: {
254
+ isBoolean: true
255
+ },
256
+ ignoreHiddenApiPolicyError: {
257
+ isBoolean: true
258
+ },
259
+ unlockSuccessTimeout: {
260
+ isNumber: true
261
+ },
262
+ mockLocationApp: {
263
+ isString: true
264
+ },
265
+ logcatFormat: {
266
+ isString: true
267
+ },
268
+ logcatFilterSpecs: {
269
+ isArray: true
270
+ },
271
+ allowDelayAdb: {
272
+ isBoolean: true
273
+ }
274
+ };
275
+ exports.commonCapConstraints = commonCapConstraints;
276
+ let uiautomatorCapConstraints = {
277
+ ignoreUnimportantViews: {
278
+ isBoolean: true
279
+ },
280
+ disableAndroidWatchers: {
281
+ isBoolean: true
282
+ },
283
+ acceptSslCerts: {
284
+ isBoolean: true
285
+ },
286
+ androidNaturalOrientation: {
287
+ isBoolean: true
288
+ },
289
+ disableWindowAnimation: {
290
+ isBoolean: true
291
+ },
292
+ bootstrapPort: {
293
+ isNumber: true
294
+ },
295
+ };
296
+ let desiredCapConstraints = {};
297
+ Object.assign(desiredCapConstraints, commonCapConstraints, uiautomatorCapConstraints);
298
+ exports.default = desiredCapConstraints;
299
+ //# sourceMappingURL=desired-caps.js.map