appium-uiautomator2-driver 2.29.10 → 2.30.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.
Files changed (135) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/build/index.d.ts +4 -0
  3. package/build/index.d.ts.map +1 -0
  4. package/build/index.js +8 -16
  5. package/build/index.js.map +1 -0
  6. package/build/lib/commands/actions.d.ts +2 -0
  7. package/build/lib/commands/actions.d.ts.map +1 -0
  8. package/build/lib/commands/actions.js +67 -65
  9. package/build/lib/commands/actions.js.map +1 -1
  10. package/build/lib/commands/alert.d.ts +2 -0
  11. package/build/lib/commands/alert.d.ts.map +1 -0
  12. package/build/lib/commands/alert.js +28 -29
  13. package/build/lib/commands/alert.js.map +1 -1
  14. package/build/lib/commands/app-strings.d.ts +3 -0
  15. package/build/lib/commands/app-strings.d.ts.map +1 -0
  16. package/build/lib/commands/app-strings.js +86 -58
  17. package/build/lib/commands/app-strings.js.map +1 -1
  18. package/build/lib/commands/battery.d.ts +2 -0
  19. package/build/lib/commands/battery.d.ts.map +1 -0
  20. package/build/lib/commands/battery.js +26 -18
  21. package/build/lib/commands/battery.js.map +1 -1
  22. package/build/lib/commands/element.d.ts +2 -0
  23. package/build/lib/commands/element.d.ts.map +1 -0
  24. package/build/lib/commands/element.js +140 -162
  25. package/build/lib/commands/element.js.map +1 -1
  26. package/build/lib/commands/find.d.ts +2 -0
  27. package/build/lib/commands/find.d.ts.map +1 -0
  28. package/build/lib/commands/find.js +39 -27
  29. package/build/lib/commands/find.js.map +1 -1
  30. package/build/lib/commands/general.d.ts +4 -0
  31. package/build/lib/commands/general.d.ts.map +1 -0
  32. package/build/lib/commands/general.js +217 -216
  33. package/build/lib/commands/general.js.map +1 -1
  34. package/build/lib/commands/gestures.d.ts +2 -0
  35. package/build/lib/commands/gestures.d.ts.map +1 -0
  36. package/build/lib/commands/gestures.js +206 -194
  37. package/build/lib/commands/gestures.js.map +1 -1
  38. package/build/lib/commands/index.d.ts +2 -0
  39. package/build/lib/commands/index.d.ts.map +1 -0
  40. package/build/lib/commands/index.js +13 -23
  41. package/build/lib/commands/index.js.map +1 -1
  42. package/build/lib/commands/mixins.d.ts +84 -0
  43. package/build/lib/commands/mixins.d.ts.map +1 -0
  44. package/build/lib/commands/mixins.js +23 -0
  45. package/build/lib/commands/mixins.js.map +1 -0
  46. package/build/lib/commands/screenshot.d.ts +2 -0
  47. package/build/lib/commands/screenshot.d.ts.map +1 -0
  48. package/build/lib/commands/screenshot.js +77 -63
  49. package/build/lib/commands/screenshot.js.map +1 -1
  50. package/build/lib/commands/touch.d.ts +2 -0
  51. package/build/lib/commands/touch.d.ts.map +1 -0
  52. package/build/lib/commands/touch.js +48 -39
  53. package/build/lib/commands/touch.js.map +1 -1
  54. package/build/lib/commands/types.d.ts +452 -0
  55. package/build/lib/commands/types.d.ts.map +1 -0
  56. package/build/lib/commands/types.js +3 -0
  57. package/build/lib/commands/types.js.map +1 -0
  58. package/build/lib/commands/viewport.d.ts +2 -0
  59. package/build/lib/commands/viewport.d.ts.map +1 -0
  60. package/build/lib/commands/viewport.js +37 -37
  61. package/build/lib/commands/viewport.js.map +1 -1
  62. package/build/lib/constraints.d.ts +334 -0
  63. package/build/lib/constraints.d.ts.map +1 -0
  64. package/build/lib/constraints.js +51 -0
  65. package/build/lib/constraints.js.map +1 -0
  66. package/build/lib/css-converter.d.ts +45 -0
  67. package/build/lib/css-converter.d.ts.map +1 -0
  68. package/build/lib/css-converter.js +272 -176
  69. package/build/lib/css-converter.js.map +1 -1
  70. package/build/lib/driver.d.ts +912 -0
  71. package/build/lib/driver.d.ts.map +1 -0
  72. package/build/lib/driver.js +738 -483
  73. package/build/lib/driver.js.map +1 -1
  74. package/build/lib/execute-method-map.d.ts +477 -0
  75. package/build/lib/execute-method-map.d.ts.map +1 -0
  76. package/build/lib/execute-method-map.js +542 -0
  77. package/build/lib/execute-method-map.js.map +1 -0
  78. package/build/lib/extensions.d.ts +3 -0
  79. package/build/lib/extensions.d.ts.map +1 -0
  80. package/build/lib/extensions.js +3 -7
  81. package/build/lib/extensions.js.map +1 -1
  82. package/build/lib/helpers.d.ts +7 -0
  83. package/build/lib/helpers.d.ts.map +1 -0
  84. package/build/lib/helpers.js +36 -30
  85. package/build/lib/helpers.js.map +1 -1
  86. package/build/lib/logger.d.ts +3 -0
  87. package/build/lib/logger.d.ts.map +1 -0
  88. package/build/lib/logger.js +5 -11
  89. package/build/lib/logger.js.map +1 -1
  90. package/build/lib/method-map.d.ts +389 -0
  91. package/build/lib/method-map.d.ts.map +1 -0
  92. package/build/lib/method-map.js +11 -18
  93. package/build/lib/method-map.js.map +1 -1
  94. package/build/lib/types.d.ts +45 -0
  95. package/build/lib/types.d.ts.map +1 -0
  96. package/build/lib/types.js +3 -0
  97. package/build/lib/types.js.map +1 -0
  98. package/build/lib/uiautomator2.d.ts +45 -0
  99. package/build/lib/uiautomator2.d.ts.map +1 -0
  100. package/build/lib/uiautomator2.js +334 -297
  101. package/build/lib/uiautomator2.js.map +1 -1
  102. package/build/lib/utils.d.ts +10 -0
  103. package/build/lib/utils.d.ts.map +1 -0
  104. package/build/lib/utils.js +23 -16
  105. package/build/lib/utils.js.map +1 -1
  106. package/build/tsconfig.tsbuildinfo +1 -0
  107. package/index.js +5 -3
  108. package/lib/commands/actions.js +115 -101
  109. package/lib/commands/alert.js +36 -44
  110. package/lib/commands/app-strings.js +79 -58
  111. package/lib/commands/battery.js +27 -28
  112. package/lib/commands/element.js +231 -134
  113. package/lib/commands/find.js +40 -21
  114. package/lib/commands/general.js +271 -336
  115. package/lib/commands/gestures.js +252 -366
  116. package/lib/commands/index.js +11 -31
  117. package/lib/commands/mixins.ts +167 -0
  118. package/lib/commands/screenshot.js +80 -76
  119. package/lib/commands/touch.js +64 -31
  120. package/lib/commands/types.ts +473 -0
  121. package/lib/commands/viewport.js +43 -31
  122. package/lib/constraints.ts +53 -0
  123. package/lib/css-converter.js +9 -1
  124. package/lib/{driver.js → driver.ts} +383 -225
  125. package/lib/execute-method-map.ts +573 -0
  126. package/lib/method-map.ts +11 -0
  127. package/lib/types.ts +59 -0
  128. package/lib/uiautomator2.js +21 -2
  129. package/lib/utils.js +2 -2
  130. package/npm-shrinkwrap.json +396 -528
  131. package/package.json +96 -70
  132. package/build/lib/desired-caps.js +0 -72
  133. package/build/lib/desired-caps.js.map +0 -1
  134. package/lib/desired-caps.js +0 -70
  135. package/lib/method-map.js +0 -11
@@ -0,0 +1,334 @@
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 disableAndroidWatchers: {
271
+ readonly isBoolean: true;
272
+ };
273
+ readonly acceptSslCerts: {
274
+ readonly isBoolean: true;
275
+ };
276
+ readonly androidNaturalOrientation: {
277
+ readonly isBoolean: true;
278
+ };
279
+ readonly disableWindowAnimation: {
280
+ readonly isBoolean: true;
281
+ };
282
+ readonly bootstrapPort: {
283
+ readonly isNumber: true;
284
+ };
285
+ readonly appWaitForLaunch: {
286
+ readonly isBoolean: true;
287
+ };
288
+ readonly app: {
289
+ readonly presence: true;
290
+ readonly isString: true;
291
+ };
292
+ readonly automationName: {
293
+ readonly isString: true;
294
+ };
295
+ readonly launchTimeout: {
296
+ readonly isNumber: true;
297
+ };
298
+ readonly uiautomator2ServerLaunchTimeout: {
299
+ readonly isNumber: true;
300
+ };
301
+ readonly uiautomator2ServerInstallTimeout: {
302
+ readonly isNumber: true;
303
+ };
304
+ readonly uiautomator2ServerReadTimeout: {
305
+ readonly isNumber: true;
306
+ };
307
+ readonly systemPort: {
308
+ readonly isNumber: true;
309
+ };
310
+ readonly mjpegServerPort: {
311
+ readonly isNumber: true;
312
+ };
313
+ readonly mjpegScreenshotUrl: {
314
+ readonly isString: true;
315
+ };
316
+ readonly skipServerInstallation: {
317
+ readonly isBoolean: true;
318
+ };
319
+ readonly androidCoverageEndIntent: {
320
+ readonly isString: true;
321
+ };
322
+ readonly disableSuppressAccessibilityService: {
323
+ readonly isBoolean: true;
324
+ };
325
+ readonly forceAppLaunch: {
326
+ readonly isBoolean: true;
327
+ };
328
+ readonly shouldTerminateApp: {
329
+ readonly isBoolean: true;
330
+ };
331
+ };
332
+ export default UIAUTOMATOR2_CONSTRAINTS;
333
+ export type Uiautomator2Constraints = typeof UIAUTOMATOR2_CONSTRAINTS;
334
+ //# 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"}