appium-uiautomator2-driver 2.29.11 → 2.31.0
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 +4 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +8 -15
- package/build/index.js.map +1 -0
- package/build/lib/commands/actions.d.ts +2 -0
- package/build/lib/commands/actions.d.ts.map +1 -0
- package/build/lib/commands/actions.js +67 -62
- package/build/lib/commands/actions.js.map +1 -1
- package/build/lib/commands/alert.d.ts +2 -0
- package/build/lib/commands/alert.d.ts.map +1 -0
- package/build/lib/commands/alert.js +28 -26
- package/build/lib/commands/alert.js.map +1 -1
- package/build/lib/commands/app-strings.d.ts +3 -0
- package/build/lib/commands/app-strings.d.ts.map +1 -0
- package/build/lib/commands/app-strings.js +86 -57
- package/build/lib/commands/app-strings.js.map +1 -1
- package/build/lib/commands/battery.d.ts +2 -0
- package/build/lib/commands/battery.d.ts.map +1 -0
- package/build/lib/commands/battery.js +26 -16
- package/build/lib/commands/battery.js.map +1 -1
- package/build/lib/commands/element.d.ts +2 -0
- package/build/lib/commands/element.d.ts.map +1 -0
- package/build/lib/commands/element.js +140 -159
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/find.d.ts +2 -0
- package/build/lib/commands/find.d.ts.map +1 -0
- package/build/lib/commands/find.js +39 -25
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/general.d.ts +4 -0
- package/build/lib/commands/general.d.ts.map +1 -0
- package/build/lib/commands/general.js +209 -215
- package/build/lib/commands/general.js.map +1 -1
- package/build/lib/commands/gestures.d.ts +2 -0
- package/build/lib/commands/gestures.d.ts.map +1 -0
- package/build/lib/commands/gestures.js +206 -193
- package/build/lib/commands/gestures.js.map +1 -1
- package/build/lib/commands/index.d.ts +2 -0
- package/build/lib/commands/index.d.ts.map +1 -0
- package/build/lib/commands/index.js +13 -22
- package/build/lib/commands/index.js.map +1 -1
- package/build/lib/commands/mixins.d.ts +87 -0
- package/build/lib/commands/mixins.d.ts.map +1 -0
- package/build/lib/commands/mixins.js +26 -0
- package/build/lib/commands/mixins.js.map +1 -0
- package/build/lib/commands/screenshot.d.ts +2 -0
- package/build/lib/commands/screenshot.d.ts.map +1 -0
- package/build/lib/commands/screenshot.js +77 -62
- package/build/lib/commands/screenshot.js.map +1 -1
- package/build/lib/commands/touch.d.ts +2 -0
- package/build/lib/commands/touch.d.ts.map +1 -0
- package/build/lib/commands/touch.js +48 -38
- package/build/lib/commands/touch.js.map +1 -1
- package/build/lib/commands/types.d.ts +452 -0
- package/build/lib/commands/types.d.ts.map +1 -0
- package/build/lib/commands/types.js +3 -0
- package/build/lib/commands/types.js.map +1 -0
- package/build/lib/commands/viewport.d.ts +2 -0
- package/build/lib/commands/viewport.d.ts.map +1 -0
- package/build/lib/commands/viewport.js +37 -35
- package/build/lib/commands/viewport.js.map +1 -1
- package/build/lib/constraints.d.ts +325 -0
- package/build/lib/constraints.d.ts.map +1 -0
- package/build/lib/constraints.js +51 -0
- package/build/lib/constraints.js.map +1 -0
- package/build/lib/css-converter.d.ts +45 -0
- package/build/lib/css-converter.d.ts.map +1 -0
- package/build/lib/css-converter.js +272 -175
- package/build/lib/css-converter.js.map +1 -1
- package/build/lib/driver.d.ts +904 -0
- package/build/lib/driver.d.ts.map +1 -0
- package/build/lib/driver.js +726 -485
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts +477 -0
- package/build/lib/execute-method-map.d.ts.map +1 -0
- package/build/lib/execute-method-map.js +542 -0
- package/build/lib/execute-method-map.js.map +1 -0
- package/build/lib/extensions.d.ts +3 -0
- package/build/lib/extensions.d.ts.map +1 -0
- package/build/lib/extensions.js +7 -9
- package/build/lib/extensions.js.map +1 -1
- package/build/lib/helpers.d.ts +7 -0
- package/build/lib/helpers.d.ts.map +1 -0
- package/build/lib/helpers.js +36 -29
- package/build/lib/helpers.js.map +1 -1
- package/build/lib/logger.d.ts +3 -0
- package/build/lib/logger.d.ts.map +1 -0
- package/build/lib/logger.js +5 -10
- package/build/lib/logger.js.map +1 -1
- package/build/lib/method-map.d.ts +389 -0
- package/build/lib/method-map.d.ts.map +1 -0
- package/build/lib/method-map.js +11 -17
- package/build/lib/method-map.js.map +1 -1
- package/build/lib/types.d.ts +44 -0
- package/build/lib/types.d.ts.map +1 -0
- package/build/lib/types.js +3 -0
- package/build/lib/types.js.map +1 -0
- package/build/lib/uiautomator2.d.ts +45 -0
- package/build/lib/uiautomator2.d.ts.map +1 -0
- package/build/lib/uiautomator2.js +340 -299
- package/build/lib/uiautomator2.js.map +1 -1
- package/build/lib/utils.d.ts +10 -0
- package/build/lib/utils.d.ts.map +1 -0
- package/build/lib/utils.js +23 -16
- package/build/lib/utils.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -0
- package/index.js +5 -3
- package/lib/commands/actions.js +115 -101
- package/lib/commands/alert.js +36 -44
- package/lib/commands/app-strings.js +79 -58
- package/lib/commands/battery.js +27 -28
- package/lib/commands/element.js +231 -134
- package/lib/commands/find.js +40 -21
- package/lib/commands/general.js +262 -336
- package/lib/commands/gestures.js +252 -366
- package/lib/commands/index.js +11 -31
- package/lib/commands/mixins.ts +169 -0
- package/lib/commands/screenshot.js +80 -76
- package/lib/commands/touch.js +64 -31
- package/lib/commands/types.ts +473 -0
- package/lib/commands/viewport.js +43 -31
- package/lib/constraints.ts +53 -0
- package/lib/css-converter.js +9 -1
- package/lib/{driver.js → driver.ts} +374 -239
- package/lib/execute-method-map.ts +573 -0
- package/lib/method-map.ts +11 -0
- package/lib/types.ts +57 -0
- package/lib/uiautomator2.js +21 -2
- package/lib/utils.js +2 -2
- package/npm-shrinkwrap.json +395 -528
- package/package.json +96 -70
- package/build/lib/desired-caps.js +0 -71
- package/build/lib/desired-caps.js.map +0 -1
- package/lib/desired-caps.js +0 -70
- package/lib/method-map.js +0 -11
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
declare const UIAUTOMATOR2_CONSTRAINTS: {
|
|
2
|
+
readonly platformName: {
|
|
3
|
+
readonly isString: true;
|
|
4
|
+
readonly inclusionCaseInsensitive: readonly ["Android"];
|
|
5
|
+
readonly presence: true;
|
|
6
|
+
};
|
|
7
|
+
readonly deviceName: {
|
|
8
|
+
readonly isString: true;
|
|
9
|
+
};
|
|
10
|
+
readonly appActivity: {
|
|
11
|
+
readonly isString: true;
|
|
12
|
+
};
|
|
13
|
+
readonly appPackage: {
|
|
14
|
+
readonly isString: true;
|
|
15
|
+
};
|
|
16
|
+
readonly appWaitActivity: {
|
|
17
|
+
readonly isString: true;
|
|
18
|
+
};
|
|
19
|
+
readonly appWaitPackage: {
|
|
20
|
+
readonly isString: true;
|
|
21
|
+
};
|
|
22
|
+
readonly appWaitDuration: {
|
|
23
|
+
readonly isNumber: true;
|
|
24
|
+
};
|
|
25
|
+
readonly deviceReadyTimeout: {
|
|
26
|
+
readonly isNumber: true;
|
|
27
|
+
};
|
|
28
|
+
readonly androidCoverage: {
|
|
29
|
+
readonly isString: true;
|
|
30
|
+
};
|
|
31
|
+
readonly androidDeviceReadyTimeout: {
|
|
32
|
+
readonly isNumber: true;
|
|
33
|
+
};
|
|
34
|
+
readonly androidDeviceSocket: {
|
|
35
|
+
readonly isString: true;
|
|
36
|
+
};
|
|
37
|
+
readonly androidInstallTimeout: {
|
|
38
|
+
readonly isNumber: true;
|
|
39
|
+
};
|
|
40
|
+
readonly adbPort: {
|
|
41
|
+
readonly isNumber: true;
|
|
42
|
+
};
|
|
43
|
+
readonly remoteAdbHost: {
|
|
44
|
+
readonly isString: true;
|
|
45
|
+
};
|
|
46
|
+
readonly adbExecTimeout: {
|
|
47
|
+
readonly isNumber: true;
|
|
48
|
+
};
|
|
49
|
+
readonly avd: {
|
|
50
|
+
readonly isString: true;
|
|
51
|
+
};
|
|
52
|
+
readonly avdLaunchTimeout: {
|
|
53
|
+
readonly isNumber: true;
|
|
54
|
+
};
|
|
55
|
+
readonly avdReadyTimeout: {
|
|
56
|
+
readonly isNumber: true;
|
|
57
|
+
};
|
|
58
|
+
readonly avdArgs: {};
|
|
59
|
+
readonly avdEnv: {
|
|
60
|
+
readonly isObject: true;
|
|
61
|
+
};
|
|
62
|
+
readonly useKeystore: {
|
|
63
|
+
readonly isBoolean: true;
|
|
64
|
+
};
|
|
65
|
+
readonly keystorePath: {
|
|
66
|
+
readonly isString: true;
|
|
67
|
+
};
|
|
68
|
+
readonly keystorePassword: {
|
|
69
|
+
readonly isString: true;
|
|
70
|
+
};
|
|
71
|
+
readonly keyAlias: {
|
|
72
|
+
readonly isString: true;
|
|
73
|
+
};
|
|
74
|
+
readonly keyPassword: {
|
|
75
|
+
readonly isString: true;
|
|
76
|
+
};
|
|
77
|
+
readonly webviewDevtoolsPort: {
|
|
78
|
+
readonly isNumber: true;
|
|
79
|
+
};
|
|
80
|
+
readonly ensureWebviewsHavePages: {
|
|
81
|
+
readonly isBoolean: true;
|
|
82
|
+
};
|
|
83
|
+
readonly enableWebviewDetailsCollection: {
|
|
84
|
+
readonly isBoolean: true;
|
|
85
|
+
};
|
|
86
|
+
readonly chromeDriverPort: {
|
|
87
|
+
readonly isNumber: true;
|
|
88
|
+
};
|
|
89
|
+
readonly chromedriverPort: {
|
|
90
|
+
readonly isNumber: true;
|
|
91
|
+
};
|
|
92
|
+
readonly chromedriverPorts: {
|
|
93
|
+
readonly isArray: true;
|
|
94
|
+
};
|
|
95
|
+
readonly chromedriverArgs: {
|
|
96
|
+
readonly isObject: true;
|
|
97
|
+
};
|
|
98
|
+
readonly chromedriverExecutable: {
|
|
99
|
+
readonly isString: true;
|
|
100
|
+
};
|
|
101
|
+
readonly chromedriverExecutableDir: {
|
|
102
|
+
readonly isString: true;
|
|
103
|
+
};
|
|
104
|
+
readonly chromedriverChromeMappingFile: {
|
|
105
|
+
readonly isString: true;
|
|
106
|
+
};
|
|
107
|
+
readonly chromedriverUseSystemExecutable: {
|
|
108
|
+
readonly isBoolean: true;
|
|
109
|
+
};
|
|
110
|
+
readonly chromedriverDisableBuildCheck: {
|
|
111
|
+
readonly isBoolean: true;
|
|
112
|
+
};
|
|
113
|
+
readonly chromeLoggingPrefs: {
|
|
114
|
+
readonly isObject: true;
|
|
115
|
+
};
|
|
116
|
+
readonly autoWebviewTimeout: {
|
|
117
|
+
readonly isNumber: true;
|
|
118
|
+
};
|
|
119
|
+
readonly autoWebviewName: {
|
|
120
|
+
readonly isString: true;
|
|
121
|
+
};
|
|
122
|
+
readonly intentAction: {
|
|
123
|
+
readonly isString: true;
|
|
124
|
+
};
|
|
125
|
+
readonly intentCategory: {
|
|
126
|
+
readonly isString: true;
|
|
127
|
+
};
|
|
128
|
+
readonly intentFlags: {
|
|
129
|
+
readonly isString: true;
|
|
130
|
+
};
|
|
131
|
+
readonly optionalIntentArguments: {
|
|
132
|
+
readonly isString: true;
|
|
133
|
+
};
|
|
134
|
+
readonly dontStopAppOnReset: {
|
|
135
|
+
readonly isBoolean: true;
|
|
136
|
+
};
|
|
137
|
+
readonly unicodeKeyboard: {
|
|
138
|
+
readonly isBoolean: true;
|
|
139
|
+
};
|
|
140
|
+
readonly resetKeyboard: {
|
|
141
|
+
readonly isBoolean: true;
|
|
142
|
+
};
|
|
143
|
+
readonly noSign: {
|
|
144
|
+
readonly isBoolean: true;
|
|
145
|
+
};
|
|
146
|
+
readonly recreateChromeDriverSessions: {
|
|
147
|
+
readonly isBoolean: false;
|
|
148
|
+
};
|
|
149
|
+
readonly autoLaunch: {
|
|
150
|
+
readonly isBoolean: true;
|
|
151
|
+
};
|
|
152
|
+
readonly nativeWebScreenshot: {
|
|
153
|
+
readonly isBoolean: true;
|
|
154
|
+
};
|
|
155
|
+
readonly androidScreenshotPath: {
|
|
156
|
+
readonly isString: true;
|
|
157
|
+
};
|
|
158
|
+
readonly androidInstallPath: {
|
|
159
|
+
readonly isString: true;
|
|
160
|
+
};
|
|
161
|
+
readonly clearSystemFiles: {
|
|
162
|
+
readonly isBoolean: true;
|
|
163
|
+
};
|
|
164
|
+
readonly extractChromeAndroidPackageFromContextName: {
|
|
165
|
+
readonly isBoolean: true;
|
|
166
|
+
};
|
|
167
|
+
readonly autoGrantPermissions: {
|
|
168
|
+
readonly isBoolean: true;
|
|
169
|
+
};
|
|
170
|
+
readonly sharedPreferences: {
|
|
171
|
+
readonly isObject: true;
|
|
172
|
+
};
|
|
173
|
+
readonly networkSpeed: {
|
|
174
|
+
readonly isString: true;
|
|
175
|
+
};
|
|
176
|
+
readonly gpsEnabled: {
|
|
177
|
+
readonly isBoolean: true;
|
|
178
|
+
};
|
|
179
|
+
readonly isHeadless: {
|
|
180
|
+
readonly isBoolean: true;
|
|
181
|
+
};
|
|
182
|
+
readonly showChromedriverLog: {
|
|
183
|
+
readonly isBoolean: true;
|
|
184
|
+
};
|
|
185
|
+
readonly skipUnlock: {
|
|
186
|
+
readonly isBoolean: true;
|
|
187
|
+
};
|
|
188
|
+
readonly clearDeviceLogsOnStart: {
|
|
189
|
+
readonly isBoolean: true;
|
|
190
|
+
};
|
|
191
|
+
readonly unlockType: {
|
|
192
|
+
readonly isString: true;
|
|
193
|
+
};
|
|
194
|
+
readonly unlockKey: {
|
|
195
|
+
readonly isString: true;
|
|
196
|
+
};
|
|
197
|
+
readonly unlockStrategy: {
|
|
198
|
+
readonly isString: true;
|
|
199
|
+
readonly inclusionCaseInsensitive: readonly ["locksettings", "uiautomator"];
|
|
200
|
+
};
|
|
201
|
+
readonly otherApps: {
|
|
202
|
+
readonly isString: true;
|
|
203
|
+
};
|
|
204
|
+
readonly uninstallOtherPackages: {
|
|
205
|
+
readonly isString: true;
|
|
206
|
+
};
|
|
207
|
+
readonly allowTestPackages: {
|
|
208
|
+
readonly isBoolean: true;
|
|
209
|
+
};
|
|
210
|
+
readonly pageLoadStrategy: {
|
|
211
|
+
readonly isString: true;
|
|
212
|
+
};
|
|
213
|
+
readonly localeScript: {
|
|
214
|
+
readonly isString: true;
|
|
215
|
+
};
|
|
216
|
+
readonly skipDeviceInitialization: {
|
|
217
|
+
readonly isBoolean: true;
|
|
218
|
+
};
|
|
219
|
+
readonly remoteAppsCacheLimit: {
|
|
220
|
+
readonly isNumber: true;
|
|
221
|
+
};
|
|
222
|
+
readonly buildToolsVersion: {
|
|
223
|
+
readonly isString: true;
|
|
224
|
+
};
|
|
225
|
+
readonly skipLogcatCapture: {
|
|
226
|
+
readonly isBoolean: true;
|
|
227
|
+
};
|
|
228
|
+
readonly chromeOptions: {
|
|
229
|
+
readonly isObject: true;
|
|
230
|
+
};
|
|
231
|
+
readonly enablePerformanceLogging: {
|
|
232
|
+
readonly isBoolean: true;
|
|
233
|
+
};
|
|
234
|
+
readonly userProfile: {
|
|
235
|
+
readonly isNumber: true;
|
|
236
|
+
};
|
|
237
|
+
readonly browserName: {
|
|
238
|
+
readonly isString: true;
|
|
239
|
+
};
|
|
240
|
+
readonly enforceAppInstall: {
|
|
241
|
+
readonly isBoolean: true;
|
|
242
|
+
};
|
|
243
|
+
readonly suppressKillServer: {
|
|
244
|
+
readonly isBoolean: true;
|
|
245
|
+
};
|
|
246
|
+
readonly allowOfflineDevices: {
|
|
247
|
+
readonly isBoolean: true;
|
|
248
|
+
};
|
|
249
|
+
readonly ignoreHiddenApiPolicyError: {
|
|
250
|
+
readonly isBoolean: true;
|
|
251
|
+
};
|
|
252
|
+
readonly unlockSuccessTimeout: {
|
|
253
|
+
readonly isNumber: true;
|
|
254
|
+
};
|
|
255
|
+
readonly mockLocationApp: {
|
|
256
|
+
readonly isString: true;
|
|
257
|
+
};
|
|
258
|
+
readonly logcatFormat: {
|
|
259
|
+
readonly isString: true;
|
|
260
|
+
};
|
|
261
|
+
readonly logcatFilterSpecs: {
|
|
262
|
+
readonly isArray: true;
|
|
263
|
+
};
|
|
264
|
+
readonly allowDelayAdb: {
|
|
265
|
+
readonly isBoolean: true;
|
|
266
|
+
};
|
|
267
|
+
readonly ignoreUnimportantViews: {
|
|
268
|
+
readonly isBoolean: true;
|
|
269
|
+
};
|
|
270
|
+
readonly acceptSslCerts: {
|
|
271
|
+
readonly isBoolean: true;
|
|
272
|
+
};
|
|
273
|
+
readonly disableWindowAnimation: {
|
|
274
|
+
readonly isBoolean: true;
|
|
275
|
+
};
|
|
276
|
+
readonly appWaitForLaunch: {
|
|
277
|
+
readonly isBoolean: true;
|
|
278
|
+
};
|
|
279
|
+
readonly app: {
|
|
280
|
+
readonly presence: true;
|
|
281
|
+
readonly isString: true;
|
|
282
|
+
};
|
|
283
|
+
readonly automationName: {
|
|
284
|
+
readonly isString: true;
|
|
285
|
+
};
|
|
286
|
+
readonly launchTimeout: {
|
|
287
|
+
readonly isNumber: true;
|
|
288
|
+
};
|
|
289
|
+
readonly uiautomator2ServerLaunchTimeout: {
|
|
290
|
+
readonly isNumber: true;
|
|
291
|
+
};
|
|
292
|
+
readonly uiautomator2ServerInstallTimeout: {
|
|
293
|
+
readonly isNumber: true;
|
|
294
|
+
};
|
|
295
|
+
readonly uiautomator2ServerReadTimeout: {
|
|
296
|
+
readonly isNumber: true;
|
|
297
|
+
};
|
|
298
|
+
readonly systemPort: {
|
|
299
|
+
readonly isNumber: true;
|
|
300
|
+
};
|
|
301
|
+
readonly mjpegServerPort: {
|
|
302
|
+
readonly isNumber: true;
|
|
303
|
+
};
|
|
304
|
+
readonly mjpegScreenshotUrl: {
|
|
305
|
+
readonly isString: true;
|
|
306
|
+
};
|
|
307
|
+
readonly skipServerInstallation: {
|
|
308
|
+
readonly isBoolean: true;
|
|
309
|
+
};
|
|
310
|
+
readonly androidCoverageEndIntent: {
|
|
311
|
+
readonly isString: true;
|
|
312
|
+
};
|
|
313
|
+
readonly disableSuppressAccessibilityService: {
|
|
314
|
+
readonly isBoolean: true;
|
|
315
|
+
};
|
|
316
|
+
readonly forceAppLaunch: {
|
|
317
|
+
readonly isBoolean: true;
|
|
318
|
+
};
|
|
319
|
+
readonly shouldTerminateApp: {
|
|
320
|
+
readonly isBoolean: true;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
export default UIAUTOMATOR2_CONSTRAINTS;
|
|
324
|
+
export type Uiautomator2Constraints = typeof UIAUTOMATOR2_CONSTRAINTS;
|
|
325
|
+
//# sourceMappingURL=constraints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constraints.d.ts","sourceRoot":"","sources":["../../lib/constraints.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CE,CAAC;AAEjC,eAAe,wBAAwB,CAAC;AAExC,MAAM,MAAM,uBAAuB,GAAG,OAAO,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const appium_android_driver_1 = require("appium-android-driver");
|
|
4
|
+
const UIAUTOMATOR2_CONSTRAINTS = {
|
|
5
|
+
app: {
|
|
6
|
+
presence: true,
|
|
7
|
+
isString: true,
|
|
8
|
+
},
|
|
9
|
+
automationName: {
|
|
10
|
+
isString: true,
|
|
11
|
+
},
|
|
12
|
+
launchTimeout: {
|
|
13
|
+
isNumber: true,
|
|
14
|
+
},
|
|
15
|
+
uiautomator2ServerLaunchTimeout: {
|
|
16
|
+
isNumber: true,
|
|
17
|
+
},
|
|
18
|
+
uiautomator2ServerInstallTimeout: {
|
|
19
|
+
isNumber: true,
|
|
20
|
+
},
|
|
21
|
+
uiautomator2ServerReadTimeout: {
|
|
22
|
+
isNumber: true,
|
|
23
|
+
},
|
|
24
|
+
systemPort: {
|
|
25
|
+
isNumber: true,
|
|
26
|
+
},
|
|
27
|
+
mjpegServerPort: {
|
|
28
|
+
isNumber: true,
|
|
29
|
+
},
|
|
30
|
+
mjpegScreenshotUrl: {
|
|
31
|
+
isString: true,
|
|
32
|
+
},
|
|
33
|
+
skipServerInstallation: {
|
|
34
|
+
isBoolean: true,
|
|
35
|
+
},
|
|
36
|
+
androidCoverageEndIntent: {
|
|
37
|
+
isString: true,
|
|
38
|
+
},
|
|
39
|
+
disableSuppressAccessibilityService: {
|
|
40
|
+
isBoolean: true,
|
|
41
|
+
},
|
|
42
|
+
forceAppLaunch: {
|
|
43
|
+
isBoolean: true,
|
|
44
|
+
},
|
|
45
|
+
shouldTerminateApp: {
|
|
46
|
+
isBoolean: true,
|
|
47
|
+
},
|
|
48
|
+
...appium_android_driver_1.commonCapConstraints,
|
|
49
|
+
};
|
|
50
|
+
exports.default = UIAUTOMATOR2_CONSTRAINTS;
|
|
51
|
+
//# sourceMappingURL=constraints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constraints.js","sourceRoot":"","sources":["../../lib/constraints.ts"],"names":[],"mappings":";;AACA,iEAA2D;AAE3D,MAAM,wBAAwB,GAAG;IAC/B,GAAG,EAAE;QACH,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;KACf;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,IAAI;KACf;IACD,aAAa,EAAE;QACb,QAAQ,EAAE,IAAI;KACf;IACD,+BAA+B,EAAE;QAC/B,QAAQ,EAAE,IAAI;KACf;IACD,gCAAgC,EAAE;QAChC,QAAQ,EAAE,IAAI;KACf;IACD,6BAA6B,EAAE;QAC7B,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,IAAI;KACf;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,IAAI;KACf;IACD,kBAAkB,EAAE;QAClB,QAAQ,EAAE,IAAI;KACf;IACD,sBAAsB,EAAE;QACtB,SAAS,EAAE,IAAI;KAChB;IACD,wBAAwB,EAAE;QACxB,QAAQ,EAAE,IAAI;KACf;IACD,mCAAmC,EAAE;QACnC,SAAS,EAAE,IAAI;KAChB;IACD,cAAc,EAAE;QACd,SAAS,EAAE,IAAI;KAChB;IACD,kBAAkB,EAAE;QAClB,SAAS,EAAE,IAAI;KAChB;IACD,GAAG,4CAAoB;CACO,CAAC;AAEjC,kBAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export default CssConverter;
|
|
2
|
+
declare class CssConverter {
|
|
3
|
+
constructor(selector: any, pkg: any);
|
|
4
|
+
selector: any;
|
|
5
|
+
pkg: any;
|
|
6
|
+
/**
|
|
7
|
+
* Add `<pkgName>:id/` prefix to beginning of string if it's not there already
|
|
8
|
+
*
|
|
9
|
+
* @param {string} locator The initial locator
|
|
10
|
+
* @returns {string} String with `<pkgName>:id/` prepended (if it wasn't already)
|
|
11
|
+
*/
|
|
12
|
+
formatIdLocator(locator: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Convert a CSS attribute into a UiSelector method call
|
|
15
|
+
*
|
|
16
|
+
* @param {import('css-selector-parser').AstAttribute} cssAttr CSS attribute object
|
|
17
|
+
* @returns {string} CSS attribute parsed as UiSelector
|
|
18
|
+
*/
|
|
19
|
+
parseAttr(cssAttr: import('css-selector-parser').AstAttribute): string;
|
|
20
|
+
/**
|
|
21
|
+
* Convert a CSS pseudo class to a UiSelector
|
|
22
|
+
*
|
|
23
|
+
* @param {import('css-selector-parser').AstPseudoClass} cssPseudo CSS Pseudo class
|
|
24
|
+
* @returns {string|null|undefined} Pseudo selector parsed as UiSelector
|
|
25
|
+
*/
|
|
26
|
+
parsePseudo(cssPseudo: import('css-selector-parser').AstPseudoClass): string | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Convert a CSS rule to a UiSelector
|
|
29
|
+
* @param {import('css-selector-parser').AstRule} cssRule CSS rule definition
|
|
30
|
+
*/
|
|
31
|
+
parseCssRule(cssRule: import('css-selector-parser').AstRule): string;
|
|
32
|
+
/**
|
|
33
|
+
* Convert CSS object to UiAutomator2 selector
|
|
34
|
+
* @param {import('css-selector-parser').AstSelector} css CSS object
|
|
35
|
+
* @returns {string} The CSS object parsed as a UiSelector
|
|
36
|
+
*/
|
|
37
|
+
parseCssObject(css: import('css-selector-parser').AstSelector): string;
|
|
38
|
+
/**
|
|
39
|
+
* Convert a CSS selector to a UiAutomator2 selector
|
|
40
|
+
*
|
|
41
|
+
* @returns {string} The CSS selector converted to a UiSelector
|
|
42
|
+
*/
|
|
43
|
+
toUiAutomatorSelector(): string;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=css-converter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css-converter.d.ts","sourceRoot":"","sources":["../../lib/css-converter.js"],"names":[],"mappings":";AAgIA;IAEE,qCAGC;IAFC,cAAwB;IACxB,SAAc;IAGhB;;;;;OAKG;IACH,yBAHW,MAAM,GACJ,MAAM,CAMlB;IAED;;;;;OAKG;IACH,mBAHW,OAAO,qBAAqB,EAAE,YAAY,GACxC,MAAM,CAsDlB;IAED;;;;;OAKG;IACH,uBAHW,OAAO,qBAAqB,EAAE,cAAc,GAC1C,MAAM,GAAC,IAAI,GAAC,SAAS,CAmBjC;IAED;;;OAGG;IACH,sBAFW,OAAO,qBAAqB,EAAE,OAAO,UA8C/C;IAED;;;;OAIG;IACH,oBAHW,OAAO,qBAAqB,EAAE,WAAW,GACvC,MAAM,CAQlB;IAED;;;;OAIG;IACH,yBAFa,MAAM,CAgBlB;CACF"}
|