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.
- package/CHANGELOG.md +14 -0
- package/build/index.d.ts +282 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +34 -20
- package/build/index.js.map +1 -0
- package/build/lib/android-helpers.d.ts +136 -0
- package/build/lib/android-helpers.d.ts.map +1 -0
- package/build/lib/android-helpers.js +855 -0
- package/build/lib/android-helpers.js.map +1 -0
- package/build/lib/bootstrap.d.ts +2 -2
- package/build/lib/commands/actions.d.ts.map +1 -1
- package/build/lib/commands/actions.js +4 -0
- package/build/lib/commands/actions.js.map +1 -1
- package/build/lib/commands/context.js +1 -1
- package/build/lib/commands/context.js.map +1 -1
- package/build/lib/commands/coverage.d.ts +5 -0
- package/build/lib/commands/coverage.d.ts.map +1 -0
- package/build/lib/commands/coverage.js +19 -0
- package/build/lib/commands/coverage.js.map +1 -0
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +4 -3
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/find.d.ts +4 -1
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +1 -0
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/index.d.ts +27 -47
- package/build/lib/commands/index.d.ts.map +1 -1
- package/build/lib/commands/index.js.map +1 -1
- package/build/lib/commands/log.d.ts.map +1 -1
- package/build/lib/commands/log.js +2 -2
- package/build/lib/commands/log.js.map +1 -1
- package/build/lib/commands/mixins.d.ts +11 -6
- package/build/lib/commands/mixins.d.ts.map +1 -1
- package/build/lib/commands/mixins.js.map +1 -1
- package/build/lib/commands/performance.d.ts +4 -4
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/types.d.ts +8 -1
- package/build/lib/commands/types.d.ts.map +1 -1
- package/build/lib/constraints.d.ts +289 -384
- package/build/lib/constraints.d.ts.map +1 -1
- package/build/lib/constraints.js +2 -9
- package/build/lib/constraints.js.map +1 -1
- package/build/lib/desired-caps.d.ts +353 -0
- package/build/lib/desired-caps.d.ts.map +1 -0
- package/build/lib/desired-caps.js +299 -0
- package/build/lib/desired-caps.js.map +1 -0
- package/build/lib/driver.d.ts +50 -403
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +67 -127
- package/build/lib/driver.js.map +1 -1
- package/build/lib/helpers/android.d.ts +11 -11
- package/build/lib/helpers/android.d.ts.map +1 -1
- package/build/lib/helpers/android.js.map +1 -1
- package/build/lib/helpers/unlock.d.ts +2 -1
- package/build/lib/helpers/unlock.d.ts.map +1 -1
- package/build/lib/helpers/unlock.js.map +1 -1
- package/build/lib/index.d.ts +9 -0
- package/build/lib/index.d.ts.map +1 -0
- package/build/lib/index.js +37 -0
- package/build/lib/index.js.map +1 -0
- package/build/lib/uiautomator.d.ts +6 -6
- package/build/lib/unlock-helpers.d.ts +38 -0
- package/build/lib/unlock-helpers.d.ts.map +1 -0
- package/build/lib/unlock-helpers.js +266 -0
- package/build/lib/unlock-helpers.js.map +1 -0
- package/build/lib/webview-helpers.d.ts +223 -0
- package/build/lib/webview-helpers.d.ts.map +1 -0
- package/build/lib/webview-helpers.js +530 -0
- package/build/lib/webview-helpers.js.map +1 -0
- package/lib/commands/actions.js +5 -0
- package/lib/commands/context.js +1 -1
- package/lib/commands/execute.js +7 -3
- package/lib/commands/find.ts +2 -0
- package/lib/commands/{index.js → index.ts} +2 -0
- package/lib/commands/log.js +6 -4
- package/lib/commands/mixins.ts +11 -7
- package/lib/commands/types.ts +9 -1
- package/lib/{constraints.js → constraints.ts} +6 -9
- package/lib/{driver.js → driver.ts} +143 -183
- package/lib/helpers/android.ts +31 -14
- package/lib/helpers/unlock.ts +2 -1
- package/lib/index.ts +18 -0
- package/package.json +14 -14
- package/build/lib/commands/mixin.d.ts +0 -3
- package/build/lib/commands/mixin.d.ts.map +0 -1
- package/build/lib/commands/mixin.js +0 -6
- package/build/lib/commands/mixin.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"desired-caps.js","sourceRoot":"","sources":["../../lib/desired-caps.js"],"names":[],"mappings":";;;AAAA,IAAI,oBAAoB,GAAG;IACzB,YAAY,EAAE;QACZ,QAAQ,EAAE,IAAI;QACd,wBAAwB,EAAE,CAAC,SAAS,CAAC;QACrC,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,GAAG,EAAE;QACH,QAAQ,EAAE,IAAI;KACf;IACD,gBAAgB,EAAE;QAChB,QAAQ,EAAE,IAAI;KACf;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,IAAI;KACf;IACD,OAAO,EAAE;IACP,gCAAgC;KACjC;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,IAAI;KACf;IACD,WAAW,EAAE;QACX,SAAS,EAAE,IAAI;KAChB;IACD,YAAY,EAAE;QACZ,QAAQ,EAA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AC,qBAAqB,EAAE,oBAAoB,EAC3C,yBAAyB,CAAC,CAAC;AAEzC,kBAAe,qBAAqB,CAAC"}
|
package/build/lib/driver.d.ts
CHANGED
|
@@ -1,332 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
declare
|
|
17
|
-
declare const AndroidDriver_base_16: typeof BaseDriver;
|
|
18
|
-
declare const AndroidDriver_base_17: typeof BaseDriver;
|
|
19
|
-
declare const AndroidDriver_base_18: typeof BaseDriver;
|
|
20
|
-
declare const AndroidDriver_base_19: typeof BaseDriver;
|
|
21
|
-
declare const AndroidDriver_base_20: typeof BaseDriver;
|
|
22
|
-
declare const AndroidDriver_base_21: typeof BaseDriver;
|
|
23
|
-
declare const AndroidDriver_base_22: typeof BaseDriver;
|
|
24
|
-
/**
|
|
25
|
-
* @typedef {import('@appium/types').DriverCaps<AndroidDriverConstraints>} AndroidDriverCaps
|
|
26
|
-
* @typedef {import('@appium/types').W3CDriverCaps<AndroidDriverConstraints>} W3CAndroidDriverCaps
|
|
27
|
-
* @typedef {typeof desiredConstraints} AndroidDriverConstraints
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* @extends {BaseDriver<AndroidDriverConstraints>}
|
|
31
|
-
* @implements {AndroidExternalDriver}
|
|
32
|
-
*/
|
|
33
|
-
export class AndroidDriver extends BaseDriver<{
|
|
34
|
-
readonly platformName: {
|
|
35
|
-
readonly isString: true;
|
|
36
|
-
readonly inclusionCaseInsensitive: readonly ["Android"];
|
|
37
|
-
readonly presence: true;
|
|
38
|
-
};
|
|
39
|
-
readonly deviceName: {
|
|
40
|
-
readonly isString: true;
|
|
41
|
-
readonly presence: true;
|
|
42
|
-
};
|
|
43
|
-
readonly app: {
|
|
44
|
-
readonly isString: true;
|
|
45
|
-
};
|
|
46
|
-
readonly appActivity: {
|
|
47
|
-
readonly isString: true;
|
|
48
|
-
};
|
|
49
|
-
readonly appPackage: {
|
|
50
|
-
readonly isString: true;
|
|
51
|
-
};
|
|
52
|
-
readonly appWaitActivity: {
|
|
53
|
-
readonly isString: true;
|
|
54
|
-
};
|
|
55
|
-
readonly appWaitPackage: {
|
|
56
|
-
readonly isString: true;
|
|
57
|
-
};
|
|
58
|
-
readonly appWaitDuration: {
|
|
59
|
-
readonly isNumber: true;
|
|
60
|
-
};
|
|
61
|
-
readonly deviceReadyTimeout: {
|
|
62
|
-
readonly isNumber: true;
|
|
63
|
-
};
|
|
64
|
-
readonly androidCoverage: {
|
|
65
|
-
readonly isString: true;
|
|
66
|
-
};
|
|
67
|
-
readonly androidDeviceReadyTimeout: {
|
|
68
|
-
readonly isNumber: true;
|
|
69
|
-
};
|
|
70
|
-
readonly androidDeviceSocket: {
|
|
71
|
-
readonly isString: true;
|
|
72
|
-
};
|
|
73
|
-
readonly androidInstallTimeout: {
|
|
74
|
-
readonly isNumber: true;
|
|
75
|
-
};
|
|
76
|
-
readonly adbPort: {
|
|
77
|
-
readonly isNumber: true;
|
|
78
|
-
};
|
|
79
|
-
readonly remoteAdbHost: {
|
|
80
|
-
readonly isString: true;
|
|
81
|
-
};
|
|
82
|
-
readonly adbExecTimeout: {
|
|
83
|
-
readonly isNumber: true;
|
|
84
|
-
};
|
|
85
|
-
readonly avd: {
|
|
86
|
-
readonly isString: true;
|
|
87
|
-
};
|
|
88
|
-
readonly avdLaunchTimeout: {
|
|
89
|
-
readonly isNumber: true;
|
|
90
|
-
};
|
|
91
|
-
readonly avdReadyTimeout: {
|
|
92
|
-
readonly isNumber: true;
|
|
93
|
-
};
|
|
94
|
-
readonly avdArgs: {};
|
|
95
|
-
readonly avdEnv: {
|
|
96
|
-
readonly isObject: true;
|
|
97
|
-
};
|
|
98
|
-
readonly useKeystore: {
|
|
99
|
-
readonly isBoolean: true;
|
|
100
|
-
};
|
|
101
|
-
readonly keystorePath: {
|
|
102
|
-
readonly isString: true;
|
|
103
|
-
};
|
|
104
|
-
readonly keystorePassword: {
|
|
105
|
-
readonly isString: true;
|
|
106
|
-
};
|
|
107
|
-
readonly keyAlias: {
|
|
108
|
-
readonly isString: true;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* @extends {BaseDriver<AndroidDriverConstraints>}
|
|
112
|
-
* @implements {AndroidExternalDriver}
|
|
113
|
-
*/
|
|
114
|
-
readonly keyPassword: {
|
|
115
|
-
readonly isString: true;
|
|
116
|
-
};
|
|
117
|
-
readonly webviewDevtoolsPort: {
|
|
118
|
-
readonly isNumber: true;
|
|
119
|
-
};
|
|
120
|
-
readonly ensureWebviewsHavePages: {
|
|
121
|
-
readonly isBoolean: true;
|
|
122
|
-
};
|
|
123
|
-
readonly enableWebviewDetailsCollection: {
|
|
124
|
-
readonly isBoolean: true;
|
|
125
|
-
};
|
|
126
|
-
readonly chromeDriverPort: {
|
|
127
|
-
readonly isNumber: true;
|
|
128
|
-
};
|
|
129
|
-
readonly chromedriverPort: {
|
|
130
|
-
readonly isNumber: true;
|
|
131
|
-
};
|
|
132
|
-
readonly chromedriverPorts: {
|
|
133
|
-
readonly isArray: true;
|
|
134
|
-
};
|
|
135
|
-
readonly chromedriverArgs: {
|
|
136
|
-
readonly isObject: true;
|
|
137
|
-
};
|
|
138
|
-
readonly chromedriverExecutable: {
|
|
139
|
-
readonly isString: true;
|
|
140
|
-
};
|
|
141
|
-
readonly chromedriverExecutableDir: {
|
|
142
|
-
readonly isString: true;
|
|
143
|
-
};
|
|
144
|
-
readonly chromedriverChromeMappingFile: {
|
|
145
|
-
readonly isString: true;
|
|
146
|
-
};
|
|
147
|
-
readonly chromedriverUseSystemExecutable: {
|
|
148
|
-
readonly isBoolean: true;
|
|
149
|
-
};
|
|
150
|
-
readonly chromedriverDisableBuildCheck: {
|
|
151
|
-
readonly isBoolean: true;
|
|
152
|
-
};
|
|
153
|
-
readonly chromeLoggingPrefs: {
|
|
154
|
-
readonly isObject: true;
|
|
155
|
-
};
|
|
156
|
-
readonly autoWebviewTimeout: {
|
|
157
|
-
readonly isNumber: true;
|
|
158
|
-
};
|
|
159
|
-
readonly autoWebviewName: {
|
|
160
|
-
readonly isString: true;
|
|
161
|
-
};
|
|
162
|
-
/** @type {StringRecord<import('appium-chromedriver').default>} */
|
|
163
|
-
readonly intentAction: {
|
|
164
|
-
readonly isString: true;
|
|
165
|
-
};
|
|
166
|
-
readonly intentCategory: {
|
|
167
|
-
readonly isString: true;
|
|
168
|
-
};
|
|
169
|
-
readonly intentFlags: {
|
|
170
|
-
readonly isString: true;
|
|
171
|
-
};
|
|
172
|
-
readonly optionalIntentArguments: {
|
|
173
|
-
readonly isString: true;
|
|
174
|
-
};
|
|
175
|
-
readonly dontStopAppOnReset: {
|
|
176
|
-
readonly isBoolean: true;
|
|
177
|
-
};
|
|
178
|
-
readonly unicodeKeyboard: {
|
|
179
|
-
readonly isBoolean: true;
|
|
180
|
-
};
|
|
181
|
-
readonly resetKeyboard: {
|
|
182
|
-
readonly isBoolean: true;
|
|
183
|
-
};
|
|
184
|
-
readonly noSign: {
|
|
185
|
-
readonly isBoolean: true;
|
|
186
|
-
};
|
|
187
|
-
readonly recreateChromeDriverSessions: {
|
|
188
|
-
readonly isBoolean: false;
|
|
189
|
-
};
|
|
190
|
-
readonly autoLaunch: {
|
|
191
|
-
readonly isBoolean: true;
|
|
192
|
-
};
|
|
193
|
-
readonly nativeWebScreenshot: {
|
|
194
|
-
readonly isBoolean: true;
|
|
195
|
-
};
|
|
196
|
-
readonly androidScreenshotPath: {
|
|
197
|
-
readonly isString: true;
|
|
198
|
-
};
|
|
199
|
-
readonly androidInstallPath: {
|
|
200
|
-
readonly isString: true;
|
|
201
|
-
};
|
|
202
|
-
readonly clearSystemFiles: {
|
|
203
|
-
readonly isBoolean: true;
|
|
204
|
-
};
|
|
205
|
-
readonly extractChromeAndroidPackageFromContextName: {
|
|
206
|
-
readonly isBoolean: true;
|
|
207
|
-
};
|
|
208
|
-
readonly autoGrantPermissions: {
|
|
209
|
-
readonly isBoolean: true;
|
|
210
|
-
};
|
|
211
|
-
readonly sharedPreferences: {
|
|
212
|
-
readonly isObject: true;
|
|
213
|
-
};
|
|
214
|
-
readonly networkSpeed: {
|
|
215
|
-
readonly isString: true;
|
|
216
|
-
};
|
|
217
|
-
readonly gpsEnabled: {
|
|
218
|
-
readonly isBoolean: true;
|
|
219
|
-
};
|
|
220
|
-
readonly isHeadless: {
|
|
221
|
-
readonly isBoolean: true;
|
|
222
|
-
};
|
|
223
|
-
readonly showChromedriverLog: {
|
|
224
|
-
readonly isBoolean: true;
|
|
225
|
-
};
|
|
226
|
-
readonly skipUnlock: {
|
|
227
|
-
readonly isBoolean: true;
|
|
228
|
-
};
|
|
229
|
-
readonly clearDeviceLogsOnStart: {
|
|
230
|
-
readonly isBoolean: true;
|
|
231
|
-
};
|
|
232
|
-
readonly unlockType: {
|
|
233
|
-
readonly isString: true;
|
|
234
|
-
};
|
|
235
|
-
readonly unlockKey: {
|
|
236
|
-
readonly isString: true;
|
|
237
|
-
};
|
|
238
|
-
readonly unlockStrategy: {
|
|
239
|
-
readonly isString: true;
|
|
240
|
-
readonly inclusionCaseInsensitive: readonly ["locksettings", "uiautomator"];
|
|
241
|
-
};
|
|
242
|
-
readonly otherApps: {
|
|
243
|
-
readonly isString: true;
|
|
244
|
-
};
|
|
245
|
-
readonly uninstallOtherPackages: {
|
|
246
|
-
readonly isString: true;
|
|
247
|
-
};
|
|
248
|
-
readonly allowTestPackages: {
|
|
249
|
-
readonly isBoolean: true;
|
|
250
|
-
};
|
|
251
|
-
readonly pageLoadStrategy: {
|
|
252
|
-
readonly isString: true;
|
|
253
|
-
};
|
|
254
|
-
readonly localeScript: {
|
|
255
|
-
readonly isString: true;
|
|
256
|
-
};
|
|
257
|
-
readonly skipDeviceInitialization: {
|
|
258
|
-
readonly isBoolean: true;
|
|
259
|
-
};
|
|
260
|
-
readonly remoteAppsCacheLimit: {
|
|
261
|
-
readonly isNumber: true;
|
|
262
|
-
};
|
|
263
|
-
readonly buildToolsVersion: {
|
|
264
|
-
readonly isString: true;
|
|
265
|
-
};
|
|
266
|
-
readonly skipLogcatCapture: {
|
|
267
|
-
readonly isBoolean: true;
|
|
268
|
-
};
|
|
269
|
-
readonly chromeOptions: {
|
|
270
|
-
readonly isObject: true;
|
|
271
|
-
};
|
|
272
|
-
readonly enablePerformanceLogging: {
|
|
273
|
-
readonly isBoolean: true;
|
|
274
|
-
};
|
|
275
|
-
readonly userProfile: {
|
|
276
|
-
readonly isNumber: true;
|
|
277
|
-
};
|
|
278
|
-
readonly browserName: {
|
|
279
|
-
readonly isString: true;
|
|
280
|
-
};
|
|
281
|
-
readonly enforceAppInstall: {
|
|
282
|
-
readonly isBoolean: true;
|
|
283
|
-
};
|
|
284
|
-
readonly suppressKillServer: {
|
|
285
|
-
readonly isBoolean: true;
|
|
286
|
-
};
|
|
287
|
-
readonly allowOfflineDevices: {
|
|
288
|
-
readonly isBoolean: true;
|
|
289
|
-
};
|
|
290
|
-
readonly ignoreHiddenApiPolicyError: {
|
|
291
|
-
readonly isBoolean: true;
|
|
292
|
-
};
|
|
293
|
-
readonly unlockSuccessTimeout: {
|
|
294
|
-
readonly isNumber: true;
|
|
295
|
-
};
|
|
296
|
-
readonly mockLocationApp: {
|
|
297
|
-
readonly isString: true;
|
|
298
|
-
};
|
|
299
|
-
readonly logcatFormat: {
|
|
300
|
-
readonly isString: true;
|
|
301
|
-
};
|
|
302
|
-
readonly logcatFilterSpecs: {
|
|
303
|
-
readonly isArray: true;
|
|
304
|
-
};
|
|
305
|
-
readonly allowDelayAdb: {
|
|
306
|
-
readonly isBoolean: true;
|
|
307
|
-
};
|
|
308
|
-
readonly ignoreUnimportantViews: {
|
|
309
|
-
readonly isBoolean: true;
|
|
310
|
-
};
|
|
311
|
-
readonly disableAndroidWatchers: {
|
|
312
|
-
readonly isBoolean: true;
|
|
313
|
-
};
|
|
314
|
-
readonly acceptSslCerts: {
|
|
315
|
-
readonly isBoolean: true;
|
|
316
|
-
};
|
|
317
|
-
readonly androidNaturalOrientation: {
|
|
318
|
-
readonly isBoolean: true;
|
|
319
|
-
};
|
|
320
|
-
readonly disableWindowAnimation: {
|
|
321
|
-
readonly isBoolean: true;
|
|
322
|
-
};
|
|
323
|
-
readonly bootstrapPort: {
|
|
324
|
-
readonly isNumber: true;
|
|
325
|
-
};
|
|
326
|
-
readonly appWaitForLaunch: {
|
|
327
|
-
readonly isBoolean: true;
|
|
328
|
-
};
|
|
329
|
-
}, import("@appium/types").StringRecord, import("@appium/types").StringRecord, import("@appium/types").StringRecord>, AndroidDriver_base, AndroidDriver_base_1, AndroidDriver_base_2, AndroidDriver_base_3, AndroidDriver_base_4, AndroidDriver_base_5, AndroidDriver_base_6, AndroidDriver_base_7, AndroidDriver_base_8, AndroidDriver_base_9, AndroidDriver_base_10, AndroidDriver_base_11, AndroidDriver_base_12, AndroidDriver_base_13, AndroidDriver_base_14, AndroidDriver_base_15, AndroidDriver_base_16, AndroidDriver_base_17, AndroidDriver_base_18, AndroidDriver_base_19, AndroidDriver_base_20, AndroidDriver_base_21, AndroidDriver_base_22 implements AndroidExternalDriver {
|
|
1
|
+
import type { DriverCaps, DriverData, DriverOpts, ExternalDriver, InitialOpts, RouteMatcher, StringRecord, W3CDriverCaps } from '@appium/types';
|
|
2
|
+
import ADB from 'appium-adb';
|
|
3
|
+
import type { default as AppiumChromedriver } from 'appium-chromedriver';
|
|
4
|
+
import { BaseDriver } from 'appium/driver';
|
|
5
|
+
import AndroidBootstrap from './bootstrap';
|
|
6
|
+
import { AndroidDriverConstraints } from './constraints';
|
|
7
|
+
import { helpers } from './helpers';
|
|
8
|
+
export type AndroidDriverCaps = DriverCaps<AndroidDriverConstraints>;
|
|
9
|
+
export type W3CAndroidDriverCaps = W3CDriverCaps<AndroidDriverConstraints>;
|
|
10
|
+
export type AndroidDriverOpts = DriverOpts<AndroidDriverConstraints>;
|
|
11
|
+
export interface AndroidSettings {
|
|
12
|
+
ignoreUnimportantViews: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type AndroidDriverCreateResult = [string, AndroidDriverCaps];
|
|
15
|
+
type AndroidExternalDriver = ExternalDriver<AndroidDriverConstraints>;
|
|
16
|
+
declare class AndroidDriver<Settings extends AndroidSettings = AndroidSettings, CreateResult = AndroidDriverCreateResult> extends BaseDriver<AndroidDriverConstraints, StringRecord, Settings, CreateResult> implements ExternalDriver<AndroidDriverConstraints, string, StringRecord, Settings, CreateResult> {
|
|
330
17
|
static newMethodMap: {
|
|
331
18
|
readonly '/session/:sessionId/timeouts/implicit_wait': {
|
|
332
19
|
readonly POST: {
|
|
@@ -439,7 +126,7 @@ export class AndroidDriver extends BaseDriver<{
|
|
|
439
126
|
readonly optional: readonly ["element", "xspeed", "yspeed", "xoffset", "yoffset", "speed"];
|
|
440
127
|
};
|
|
441
128
|
};
|
|
442
|
-
};
|
|
129
|
+
};
|
|
443
130
|
readonly '/session/:sessionId/touch/perform': {
|
|
444
131
|
readonly POST: {
|
|
445
132
|
readonly command: "performTouch";
|
|
@@ -451,7 +138,7 @@ export class AndroidDriver extends BaseDriver<{
|
|
|
451
138
|
};
|
|
452
139
|
readonly '/session/:sessionId/touch/multi/perform': {
|
|
453
140
|
readonly POST: {
|
|
454
|
-
readonly command: "performMultiAction";
|
|
141
|
+
readonly command: "performMultiAction";
|
|
455
142
|
readonly payloadParams: {
|
|
456
143
|
readonly required: readonly ["actions"];
|
|
457
144
|
readonly optional: readonly ["elementId"];
|
|
@@ -715,77 +402,37 @@ export class AndroidDriver extends BaseDriver<{
|
|
|
715
402
|
};
|
|
716
403
|
};
|
|
717
404
|
};
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
* @param {boolean} shouldValidateCaps
|
|
722
|
-
*/
|
|
723
|
-
constructor(opts?: AndroidDriverOpts, shouldValidateCaps?: boolean);
|
|
724
|
-
/**
|
|
725
|
-
* @type {typeof NO_PROXY}
|
|
726
|
-
*/
|
|
727
|
-
jwpProxyAvoid: typeof NO_PROXY;
|
|
728
|
-
/**
|
|
729
|
-
* @type {import('./bootstrap').AndroidBootstrap | undefined}
|
|
730
|
-
*/
|
|
731
|
-
bootstrap: import('./bootstrap').AndroidBootstrap | undefined;
|
|
732
|
-
/** @type {import('appium-adb').ADB|undefined} */
|
|
733
|
-
adb: import('appium-adb').ADB | undefined;
|
|
734
|
-
/** @type {typeof helpers.unlocker} */
|
|
405
|
+
jwpProxyAvoid: RouteMatcher[];
|
|
406
|
+
bootstrap?: AndroidBootstrap;
|
|
407
|
+
adb?: ADB;
|
|
735
408
|
unlocker: typeof helpers.unlocker;
|
|
736
|
-
/** @type {StringRecord<StringRecord<string>>} */
|
|
737
409
|
apkStrings: StringRecord<StringRecord<string>>;
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
* @type {string[]|undefined}
|
|
744
|
-
*/
|
|
745
|
-
contexts: string[] | undefined;
|
|
746
|
-
/** @type {StringRecord<import('appium-chromedriver').default>} */
|
|
747
|
-
sessionChromedrivers: StringRecord<import('appium-chromedriver').default>;
|
|
748
|
-
/** @type {import('appium-chromedriver').default|null} */
|
|
749
|
-
chromedriver: import('appium-chromedriver').default | null;
|
|
750
|
-
/**
|
|
751
|
-
* @type {AndroidExternalDriver['proxyCommand']|undefined}
|
|
752
|
-
*/
|
|
753
|
-
proxyCommand: AndroidExternalDriver['proxyCommand'] | undefined;
|
|
410
|
+
proxyReqRes?: (...args: any) => any;
|
|
411
|
+
contexts?: string[];
|
|
412
|
+
sessionChromedrivers: StringRecord<AppiumChromedriver>;
|
|
413
|
+
chromedriver?: AppiumChromedriver;
|
|
414
|
+
proxyCommand?: AndroidExternalDriver['proxyCommand'];
|
|
754
415
|
jwpProxyActive: boolean;
|
|
755
|
-
settings: DeviceSettings<{
|
|
756
|
-
ignoreUnimportantViews: boolean;
|
|
757
|
-
}>;
|
|
758
416
|
curContext: string;
|
|
759
|
-
useUnlockHelperApp
|
|
417
|
+
useUnlockHelperApp?: boolean;
|
|
418
|
+
defaultIME?: string;
|
|
419
|
+
_wasWindowAnimationDisabled?: boolean;
|
|
420
|
+
opts: AndroidDriverOpts;
|
|
421
|
+
constructor(opts?: InitialOpts, shouldValidateCaps?: boolean);
|
|
422
|
+
createSession(w3cCaps1: W3CAndroidDriverCaps, w3cCaps2?: W3CAndroidDriverCaps, w3cCaps3?: W3CAndroidDriverCaps, driverData?: DriverData[]): Promise<CreateResult>;
|
|
760
423
|
isEmulator(): boolean;
|
|
761
|
-
/**
|
|
762
|
-
*
|
|
763
|
-
* @param {AndroidDriverCaps} caps
|
|
764
|
-
*/
|
|
765
424
|
setAvdFromCapabilities(caps: AndroidDriverCaps): void;
|
|
766
425
|
get appOnDevice(): boolean;
|
|
767
426
|
get isChromeSession(): boolean;
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
* @param {string} key
|
|
771
|
-
* @param {any} value
|
|
772
|
-
*/
|
|
773
|
-
onSettingsUpdate(key: string, value: any): Promise<void>;
|
|
774
|
-
/**
|
|
775
|
-
*
|
|
776
|
-
* @param {AndroidDriverOpts} [opts]
|
|
777
|
-
*/
|
|
778
|
-
startAndroidSession(opts?: AndroidDriverOpts | undefined): Promise<void>;
|
|
779
|
-
defaultIME: void | undefined;
|
|
780
|
-
_wasWindowAnimationDisabled: boolean | undefined;
|
|
427
|
+
onSettingsUpdate(key: keyof Settings, value: any): Promise<void>;
|
|
428
|
+
startAndroidSession(opts: AndroidDriverOpts): Promise<void>;
|
|
781
429
|
initAutoWebview(): Promise<void>;
|
|
782
430
|
initAUT(): Promise<void>;
|
|
783
431
|
checkAppPresent(): Promise<void>;
|
|
784
432
|
checkPackagePresent(): Promise<void>;
|
|
785
433
|
/**
|
|
786
|
-
*
|
|
787
|
-
* @param
|
|
788
|
-
* @privateRemarks FIXME: unknown type
|
|
434
|
+
* Set CompressedLayoutHierarchy on the device
|
|
435
|
+
* @privateRemarks FIXME: unknown param type
|
|
789
436
|
*/
|
|
790
437
|
setCompressedLayoutHierarchy(compress: any): Promise<void>;
|
|
791
438
|
deleteSession(): Promise<void>;
|
|
@@ -793,30 +440,30 @@ export class AndroidDriver extends BaseDriver<{
|
|
|
793
440
|
*
|
|
794
441
|
* @param {AndroidDriverOpts} [opts]
|
|
795
442
|
*/
|
|
796
|
-
setSharedPreferences(opts
|
|
443
|
+
setSharedPreferences(opts: AndroidDriverOpts): Promise<boolean>;
|
|
797
444
|
getPrefsBuilder(): any;
|
|
445
|
+
/**
|
|
446
|
+
*
|
|
447
|
+
* @param {any} caps
|
|
448
|
+
* @returns {caps is AndroidDriverCaps}
|
|
449
|
+
*/
|
|
450
|
+
validateDesiredCaps(caps: any): caps is AndroidDriverCaps;
|
|
798
451
|
/**
|
|
799
452
|
*
|
|
800
453
|
* @param {string} sessionId
|
|
801
454
|
*/
|
|
802
455
|
proxyActive(sessionId: string): boolean;
|
|
456
|
+
/**
|
|
457
|
+
*
|
|
458
|
+
* @param {string} sessionId
|
|
459
|
+
*/
|
|
460
|
+
getProxyAvoidList(sessionId: string): RouteMatcher[];
|
|
803
461
|
/**
|
|
804
462
|
*
|
|
805
463
|
* @param {string} sessionId
|
|
806
464
|
*/
|
|
807
465
|
canProxy(sessionId: string): boolean;
|
|
808
466
|
}
|
|
809
|
-
export { commands as androidCommands } from
|
|
810
|
-
export
|
|
811
|
-
export type W3CAndroidDriverCaps = import('@appium/types').W3CDriverCaps<AndroidDriverConstraints>;
|
|
812
|
-
export type AndroidDriverConstraints = typeof desiredConstraints;
|
|
813
|
-
export type AndroidExternalDriver = import('@appium/types').ExternalDriver<AndroidDriverConstraints>;
|
|
814
|
-
export type AndroidDriverOpts = import('@appium/types').DriverOpts<AndroidDriverConstraints>;
|
|
815
|
-
export type ADB = import('appium-adb').ADB;
|
|
816
|
-
export type StringRecord<T = any> = import('@appium/types').StringRecord<T>;
|
|
817
|
-
import { BaseDriver } from 'appium/driver';
|
|
818
|
-
declare const NO_PROXY: import("@appium/types").RouteMatcher[];
|
|
819
|
-
import { helpers } from './helpers';
|
|
820
|
-
import { DeviceSettings } from 'appium/driver';
|
|
821
|
-
import desiredConstraints from './constraints';
|
|
467
|
+
export { commands as androidCommands } from './commands';
|
|
468
|
+
export { AndroidDriver };
|
|
822
469
|
//# sourceMappingURL=driver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,UAAU,EACV,UAAU,EACV,UAAU,EACV,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,GAAuB,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAC,UAAU,EAAiB,MAAM,eAAe,CAAC;AAKzD,OAAO,gBAAgB,MAAM,aAAa,CAAC;AAC3C,OAAmC,EAAC,wBAAwB,EAAC,MAAM,eAAe,CAAC;AACnF,OAAO,EAA6C,OAAO,EAAC,MAAM,WAAW,CAAC;AAyB9E,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,wBAAwB,CAAC,CAAC;AACrE,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC,wBAAwB,CAAC,CAAC;AAC3E,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,wBAAwB,CAAC,CAAC;AAErE,MAAM,WAAW,eAAe;IAC9B,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,MAAM,yBAAyB,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AACpE,KAAK,qBAAqB,GAAG,cAAc,CAAC,wBAA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