appium-uiautomator2-driver 3.10.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/README.md +19 -1
  3. package/build/lib/commands/actions.d.ts +13 -7
  4. package/build/lib/commands/actions.d.ts.map +1 -1
  5. package/build/lib/commands/actions.js +24 -10
  6. package/build/lib/commands/actions.js.map +1 -1
  7. package/build/lib/commands/alert.d.ts +8 -4
  8. package/build/lib/commands/alert.d.ts.map +1 -1
  9. package/build/lib/commands/alert.js +10 -6
  10. package/build/lib/commands/alert.js.map +1 -1
  11. package/build/lib/commands/app-management.d.ts +10 -6
  12. package/build/lib/commands/app-management.d.ts.map +1 -1
  13. package/build/lib/commands/app-management.js +13 -10
  14. package/build/lib/commands/app-management.js.map +1 -1
  15. package/build/lib/commands/clipboard.d.ts +0 -12
  16. package/build/lib/commands/clipboard.d.ts.map +1 -1
  17. package/build/lib/commands/clipboard.js +0 -18
  18. package/build/lib/commands/clipboard.js.map +1 -1
  19. package/build/lib/commands/element.d.ts +3 -2
  20. package/build/lib/commands/element.d.ts.map +1 -1
  21. package/build/lib/commands/element.js +3 -4
  22. package/build/lib/commands/element.js.map +1 -1
  23. package/build/lib/commands/gestures.d.ts +130 -22
  24. package/build/lib/commands/gestures.d.ts.map +1 -1
  25. package/build/lib/commands/gestures.js +130 -33
  26. package/build/lib/commands/gestures.js.map +1 -1
  27. package/build/lib/commands/keyboard.d.ts +11 -4
  28. package/build/lib/commands/keyboard.d.ts.map +1 -1
  29. package/build/lib/commands/keyboard.js +13 -7
  30. package/build/lib/commands/keyboard.js.map +1 -1
  31. package/build/lib/commands/navigation.d.ts +5 -2
  32. package/build/lib/commands/navigation.d.ts.map +1 -1
  33. package/build/lib/commands/navigation.js +5 -3
  34. package/build/lib/commands/navigation.js.map +1 -1
  35. package/build/lib/commands/screenshot.d.ts +4 -2
  36. package/build/lib/commands/screenshot.d.ts.map +1 -1
  37. package/build/lib/commands/screenshot.js +4 -3
  38. package/build/lib/commands/screenshot.js.map +1 -1
  39. package/build/lib/commands/types.d.ts +0 -387
  40. package/build/lib/commands/types.d.ts.map +1 -1
  41. package/build/lib/driver.d.ts +540 -8
  42. package/build/lib/driver.d.ts.map +1 -1
  43. package/build/lib/driver.js +2 -7
  44. package/build/lib/driver.js.map +1 -1
  45. package/build/lib/execute-method-map.d.ts +540 -0
  46. package/build/lib/execute-method-map.d.ts.map +1 -0
  47. package/build/lib/execute-method-map.js +257 -0
  48. package/build/lib/execute-method-map.js.map +1 -0
  49. package/build/tsconfig.tsbuildinfo +1 -1
  50. package/lib/commands/actions.js +32 -10
  51. package/lib/commands/alert.js +10 -6
  52. package/lib/commands/app-management.js +14 -11
  53. package/lib/commands/clipboard.js +0 -18
  54. package/lib/commands/element.js +3 -4
  55. package/lib/commands/gestures.js +184 -38
  56. package/lib/commands/keyboard.js +13 -8
  57. package/lib/commands/navigation.js +5 -3
  58. package/lib/commands/screenshot.js +4 -3
  59. package/lib/commands/types.ts +0 -406
  60. package/lib/driver.ts +2 -16
  61. package/lib/execute-method-map.ts +269 -0
  62. package/npm-shrinkwrap.json +41 -48
  63. package/package.json +3 -3
  64. package/build/lib/commands/app-strings.d.ts +0 -12
  65. package/build/lib/commands/app-strings.d.ts.map +0 -1
  66. package/build/lib/commands/app-strings.js +0 -19
  67. package/build/lib/commands/app-strings.js.map +0 -1
  68. package/build/lib/commands/execute.d.ts +0 -15
  69. package/build/lib/commands/execute.d.ts.map +0 -1
  70. package/build/lib/commands/execute.js +0 -83
  71. package/build/lib/commands/execute.js.map +0 -1
  72. package/lib/commands/app-strings.js +0 -16
  73. package/lib/commands/execute.js +0 -93
@@ -1 +1 @@
1
- {"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../../../lib/commands/keyboard.js"],"names":[],"mappings":";;;;;AASA,oCAUC;AASD,4CAUC;AAOD,wCAYC;AAWD,gCAMC;AAOD,gCAMC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ACN;QACE,OAAO;QACP,SAAS;QACT,KAAK;KACN,CACF,CAAC;AACJ,CAAC;AAED;;;;;;;;;GASG;AACI,KAAK,UAAU,UAAU,CAAC,IAAI;IACnC,IAAI,gBAAC,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,eAAM,CAAC,oBAAoB,CAAC,kCAAkC,CAAC,CAAC;IAC5E,CAAC;IACD,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1D,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,UAAU,CAAC,MAAM;IACrC,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CACrC,OAAO,EACP,MAAM,EACN,MAAM,CACP,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACI,KAAK,UAAU,QAAQ,CAAC,OAAO,EAAE,SAAS;IAC/C,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,sBAAsB,SAAS,EAAE,CAAC,CAAC;IAClD,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AACnC,CAAC;AAED;;GAEG"}
@@ -7,10 +7,13 @@ export function setUrl(this: import("../driver").AndroidUiautomator2Driver, url:
7
7
  /**
8
8
  * Start URL that take users directly to specific content in the app
9
9
  * @this {AndroidUiautomator2Driver}
10
- * @param {import('./types').DeepLinkOpts} opts
10
+ * @param {string} url The name of URL to start.
11
+ * @param {string} [pkg] The name of the package to start the URI with.
12
+ * @param {boolean} [waitForLaunch=true] If `false` then adb won't wait for
13
+ * the started activity to return the control.
11
14
  * @returns {Promise<void>}
12
15
  */
13
- export function mobileDeepLink(this: import("../driver").AndroidUiautomator2Driver, opts: import("./types").DeepLinkOpts): Promise<void>;
16
+ export function mobileDeepLink(this: import("../driver").AndroidUiautomator2Driver, url: string, pkg?: string, waitForLaunch?: boolean): Promise<void>;
14
17
  /**
15
18
  * @this {AndroidUiautomator2Driver}
16
19
  * @returns {Promise<void>}
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../lib/commands/navigation.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,iFAHW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;;;GAKG;AACH,0FAHW,OAAO,SAAS,EAAE,YAAY,GAC5B,OAAO,CAAC,IAAI,CAAC,CAKzB;AAED;;;GAGG;AACH,2EAFa,OAAO,CAAC,IAAI,CAAC,CAIzB;wCAGY,OAAO,WAAW,EAAE,yBAAyB"}
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../lib/commands/navigation.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,iFAHW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;;;;;;GAQG;AACH,yFANW,MAAM,QACN,MAAM,kBACN,OAAO,GAEL,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;GAGG;AACH,2EAFa,OAAO,CAAC,IAAI,CAAC,CAIzB;wCAGY,OAAO,WAAW,EAAE,yBAAyB"}
@@ -14,11 +14,13 @@ async function setUrl(url) {
14
14
  /**
15
15
  * Start URL that take users directly to specific content in the app
16
16
  * @this {AndroidUiautomator2Driver}
17
- * @param {import('./types').DeepLinkOpts} opts
17
+ * @param {string} url The name of URL to start.
18
+ * @param {string} [pkg] The name of the package to start the URI with.
19
+ * @param {boolean} [waitForLaunch=true] If `false` then adb won't wait for
20
+ * the started activity to return the control.
18
21
  * @returns {Promise<void>}
19
22
  */
20
- async function mobileDeepLink(opts) {
21
- const { url, package: pkg, waitForLaunch } = opts;
23
+ async function mobileDeepLink(url, pkg, waitForLaunch) {
22
24
  return await this.adb.startUri(url, pkg, { waitForLaunch });
23
25
  }
24
26
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.js","sourceRoot":"","sources":["../../../lib/commands/navigation.js"],"names":[],"mappings":";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C,CAAC;AAC7B,CAAC;AAED;;GAEG"}
@@ -17,9 +17,11 @@ export function getScreenshot(this: import("../driver").AndroidUiautomator2Drive
17
17
  * Retrieves screenshots of each display available to Android.
18
18
  * This functionality is only supported since Android 10.
19
19
  * @this {AndroidUiautomator2Driver}
20
- * @param {import('./types').ScreenshotsOpts} [opts={}]
20
+ * @param {number | string} [displayId] Android display identifier to take a screenshot for.
21
+ * If not provided then screenshots of all displays are going to be returned.
22
+ * If no matches were found then an error is thrown.
21
23
  * @returns {Promise<import('@appium/types').StringRecord<import('./types').Screenshot>>}
22
24
  */
23
- export function mobileScreenshots(this: import("../driver").AndroidUiautomator2Driver, opts?: import("./types").ScreenshotsOpts): Promise<import("@appium/types").StringRecord<import("./types").Screenshot>>;
25
+ export function mobileScreenshots(this: import("../driver").AndroidUiautomator2Driver, displayId?: number | string): Promise<import("@appium/types").StringRecord<import("./types").Screenshot>>;
24
26
  export type AndroidUiautomator2Driver = import("../driver").AndroidUiautomator2Driver;
25
27
  //# sourceMappingURL=screenshot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../../lib/commands/screenshot.js"],"names":[],"mappings":"AAOA;;;GAGG;AACH,+FAFa,OAAO,CAAC,MAAM,CAAC,CAI3B;AAED;;;GAGG;AACH,4FAFa,OAAO,CAAC,MAAM,CAAC,CAM3B;AAED;;;GAGG;AACH,oFAFa,OAAO,CAAC,MAAM,CAAC,CAkB3B;AAED;;;;;;GAMG;AACH,8FAHW,OAAO,SAAS,EAAE,eAAe,GAC/B,OAAO,CAAC,OAAO,eAAe,EAAE,YAAY,CAAC,OAAO,SAAS,EAAE,UAAU,CAAC,CAAC,CA0DvF;wCAGY,OAAO,WAAW,EAAE,yBAAyB"}
1
+ {"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../../lib/commands/screenshot.js"],"names":[],"mappings":"AAOA;;;GAGG;AACH,+FAFa,OAAO,CAAC,MAAM,CAAC,CAI3B;AAED;;;GAGG;AACH,4FAFa,OAAO,CAAC,MAAM,CAAC,CAM3B;AAED;;;GAGG;AACH,oFAFa,OAAO,CAAC,MAAM,CAAC,CAkB3B;AAED;;;;;;;;GAQG;AACH,mGALW,MAAM,GAAG,MAAM,GAGb,OAAO,CAAC,OAAO,eAAe,EAAE,YAAY,CAAC,OAAO,SAAS,EAAE,UAAU,CAAC,CAAC,CAyDvF;wCAGY,OAAO,WAAW,EAAE,yBAAyB"}
@@ -47,10 +47,12 @@ async function getScreenshot() {
47
47
  * Retrieves screenshots of each display available to Android.
48
48
  * This functionality is only supported since Android 10.
49
49
  * @this {AndroidUiautomator2Driver}
50
- * @param {import('./types').ScreenshotsOpts} [opts={}]
50
+ * @param {number | string} [displayId] Android display identifier to take a screenshot for.
51
+ * If not provided then screenshots of all displays are going to be returned.
52
+ * If no matches were found then an error is thrown.
51
53
  * @returns {Promise<import('@appium/types').StringRecord<import('./types').Screenshot>>}
52
54
  */
53
- async function mobileScreenshots(opts = {}) {
55
+ async function mobileScreenshots(displayId) {
54
56
  const displaysInfo = await /** @type {import('appium-adb').ADB} */ (this.adb).shell([
55
57
  'dumpsys',
56
58
  'SurfaceFlinger',
@@ -75,7 +77,6 @@ async function mobileScreenshots(opts = {}) {
75
77
  * @param {string} dispId
76
78
  */
77
79
  const toB64Screenshot = async (dispId) => (await /** @type {import('appium-adb').ADB} */ (this.adb).takeScreenshot(dispId)).toString('base64');
78
- const { displayId } = opts;
79
80
  // @ts-ignore isNaN works properly here
80
81
  const displayIdStr = isNaN(displayId) ? null : `${displayId}`;
81
82
  if (displayIdStr) {
@@ -1 +1 @@
1
- {"version":3,"file":"screenshot.js","sourceRoot":"","sources":["../../../lib/commands/screenshot.js"],"names":[],"mappings":";;;;;AAWA,4DAEC;AAMD,sDAIC;AAMD,sCAgBC;AASD,8CAwDC;AA9GD,oDAAuB;AACvB,wDAAyB;AACzB,4CAAyC;AAEzC,4FAA4F;AAC5F,MAAM,eAAe,GAAG,kEAAkE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
5
- export interface PressKeyOptions {
6
- /**
7
- * A valid Android key code. See https://developer.android.com/reference/android/view/KeyEvent
8
- * for the list of available key codes.
9
- */
10
- keycode: number;
11
- /**
12
- * An integer in which each bit set to 1 represents a pressed meta key. See
13
- * https://developer.android.com/reference/android/view/KeyEvent for more details.
14
- */
15
- metastate?: number;
16
- /**
17
- * Flags for the particular key event. See
18
- * https://developer.android.com/reference/android/view/KeyEvent for more details.
19
- */
20
- flags?: string;
21
- /**
22
- * Whether to emulate long key press. Defaults to `false`.
23
- */
24
- isLongPress: boolean;
25
- }
26
- export interface AcceptAlertOptions {
27
- /**
28
- * The name of the button to click in order to accept the alert. If the name is not provided
29
- * then the script will try to detect the button automatically.
30
- */
31
- buttonLabel?: string;
32
- }
33
- export interface DismissAlertOptions {
34
- /**
35
- * The name of the button to click in order to dismiss the alert. If the name is not provided
36
- * then the script will try to detect the button automatically.
37
- */
38
- buttonLabel?: string;
39
- }
40
- export interface GetAppStringsOptions {
41
- /**
42
- * The language abbreviation to fetch app strings mapping for. If no
43
- * language is provided then strings for the default language on the device under test
44
- * would be returned. Examples: en, fr
45
- */
46
- language?: string;
47
- }
48
2
  export type BatteryState = -1 | 1 | 2 | 3 | 4 | 5;
49
3
  export interface BatteryInfo {
50
4
  /**
@@ -63,40 +17,9 @@ export interface BatteryInfo {
63
17
  */
64
18
  state: BatteryState;
65
19
  }
66
- export interface ReplaceValueOptions {
67
- /**
68
- * The id of the element whose content will be replaced.
69
- */
70
- elementId: string;
71
- /**
72
- * The actual text to set.
73
- */
74
- text: string;
75
- }
76
20
  export type MapKey<T, K extends keyof T, N extends string> = Pick<T, Exclude<keyof T, K>> & {
77
21
  [P in N]: T[K];
78
22
  };
79
- export interface DeepLinkOpts {
80
- /**
81
- * The name of URL to start.
82
- */
83
- url: string;
84
- /**
85
- * The name of the package to start the URI with.
86
- */
87
- package?: string;
88
- /**
89
- * If `false` then adb won't wait for the started activity to return the control.
90
- * @defaultValue true
91
- */
92
- waitForLaunch?: boolean;
93
- }
94
- export interface TypingOptions {
95
- /**
96
- * The text to type. Can be a string, number or boolean.
97
- */
98
- text: string | number | boolean;
99
- }
100
23
  export interface InstallOptions {
101
24
  /**
102
25
  * Set to true in order to allow test packages installation.
@@ -127,291 +50,6 @@ export interface InstallOptions {
127
50
  */
128
51
  partialInstall?: boolean;
129
52
  }
130
- export interface InstallMultipleApksOptions {
131
- /**
132
- * The list of APKs to install. Each APK should be a path to a apk
133
- * or downloadable URL as HTTP/HTTPS.
134
- */
135
- apks: string[];
136
- /**
137
- * The installation options.
138
- */
139
- options?: InstallOptions;
140
- }
141
- export interface BackgroundAppOptions {
142
- /**
143
- * The amount of seconds to wait between putting the app to background and restoring it.
144
- * Any negative value means to not restore the app after putting it to background.
145
- * @defaultValue -1
146
- */
147
- seconds?: number;
148
- }
149
- export interface ClickOptions {
150
- /**
151
- * The id of the element to be clicked. If the element is missing then both click offset coordinates must be provided. If both the element id and offset are provided then the coordinates are parsed as relative offsets from the top left corner of the element.
152
- */
153
- elementId?: string;
154
- /**
155
- * The x coordinate to click on.
156
- */
157
- x?: number;
158
- /**
159
- * The y coordinate to click on.
160
- */
161
- y?: number;
162
- }
163
- export interface LongClickOptions {
164
- /**
165
- * The id of the element to be clicked.
166
- * If the element is missing then both click offset coordinates must be provided.
167
- * If both the element id and offset are provided then the coordinates
168
- * are parsed as relative offsets from the top left corner of the element.
169
- */
170
- elementId?: string;
171
- /**
172
- * The x coordinate to click on.
173
- */
174
- x?: number;
175
- /**
176
- * The y coordinate to click on.
177
- */
178
- y?: number;
179
- /**
180
- * Click duration in milliseconds. The value must not be negative.
181
- * Default is 500.
182
- */
183
- duration?: number;
184
- }
185
- export type DoubleClickOptions = ClickOptions;
186
- export interface DragOptions {
187
- /**
188
- * The id of the element to be dragged.
189
- * If the element id is missing then the start coordinates must be provided.
190
- * If both the element id and the start coordinates are provided then these
191
- * coordinates are considered as offsets from the top left element corner.
192
- */
193
- elementId?: string;
194
- /**
195
- * The x coordinate where the dragging starts
196
- */
197
- startX?: number;
198
- /**
199
- * The y coordinate where the dragging starts
200
- */
201
- startY?: number;
202
- /**
203
- * The x coordinate where the dragging ends
204
- */
205
- endX?: number;
206
- /**
207
- * The y coordinate where the dragging ends
208
- */
209
- endY?: number;
210
- /**
211
- * The speed at which to perform this gesture in pixels per second.
212
- * The value must not be negative.
213
- * Default is 2500 * displayDensity.
214
- */
215
- speed?: number;
216
- }
217
- export interface FlingOptions {
218
- /**
219
- * The id of the element to be flinged.
220
- * If the element id is missing then fling bounding area must be provided.
221
- * If both the element id and the fling bounding area are provided then this
222
- * area is effectively ignored.
223
- */
224
- elementId?: string;
225
- /**
226
- * The left coordinate of the fling bounding area.
227
- */
228
- left?: number;
229
- /**
230
- * The top coordinate of the fling bounding area.
231
- */
232
- top?: number;
233
- /**
234
- * The width of the fling bounding area.
235
- */
236
- width?: number;
237
- /**
238
- * The height of the fling bounding area.
239
- */
240
- height?: number;
241
- /**
242
- * Direction of the fling.
243
- * Acceptable values are: `up`, `down`, `left` and `right` (case insensitive).
244
- */
245
- direction: string;
246
- /**
247
- * The speed at which to perform this gesture in pixels per second.
248
- * The value must be greater than the minimum fling velocity for the given view (50 by default).
249
- * Default is 7500 * displayDensity.
250
- */
251
- speed?: number;
252
- }
253
- export interface PinchOptions {
254
- /**
255
- * The id of the element to be pinched.
256
- * If the element id is missing then pinch bounding area must be provided.
257
- * If both the element id and the pinch bounding area are provided then the
258
- * area is effectively ignored.
259
- */
260
- elementId?: string;
261
- /**
262
- * The left coordinate of the pinch bounding area.
263
- */
264
- left?: number;
265
- /**
266
- * The top coordinate of the pinch bounding area.
267
- */
268
- top?: number;
269
- /**
270
- * The width of the pinch bounding area.
271
- */
272
- width?: number;
273
- /**
274
- * The height of the pinch bounding area.
275
- */
276
- height?: number;
277
- /**
278
- * The size of the pinch as a percentage of the pinch area size.
279
- * Valid values must be float numbers in range 0..1, where 1.0 is 100%
280
- */
281
- percent: number;
282
- /**
283
- * The speed at which to perform this gesture in pixels per second.
284
- * The value must not be negative.
285
- * Default is 2500 * displayDensity.
286
- */
287
- speed?: number;
288
- }
289
- export interface SwipeOptions {
290
- /**
291
- * The id of the element to be swiped.
292
- * If the element id is missing then swipe bounding area must be provided.
293
- * If both the element id and the swipe bounding area are provided then the
294
- * area is effectively ignored.
295
- */
296
- elementId?: string;
297
- /**
298
- * The left coordinate of the swipe bounding area.
299
- */
300
- left?: number;
301
- /**
302
- * The top coordinate of the swipe bounding area.
303
- */
304
- top?: number;
305
- /**
306
- * The width of the swipe bounding area.
307
- */
308
- width?: number;
309
- /**
310
- * The height of the swipe bounding area.
311
- */
312
- height?: number;
313
- /**
314
- * Direction of the swipe.
315
- * Acceptable values are: `up`, `down`, `left` and `right` (case insensitive).
316
- */
317
- direction: string;
318
- /**
319
- * The size of the swipe as a percentage of the swipe area size.
320
- * Valid values must be float numbers in range 0..1, where 1.0 is 100%.
321
- */
322
- percent: number;
323
- /**
324
- * The speed at which to perform this gesture in pixels per second.
325
- * The value must not be negative.
326
- * Default is 5000 * displayDensity.
327
- */
328
- speed?: number;
329
- }
330
- export interface ScrollGestureOptions {
331
- /**
332
- * The id of the element to be scrolled.
333
- * If the element id is missing then scroll bounding area must be provided.
334
- * If both the element id and the scroll bounding area are provided then this
335
- * area is effectively ignored.
336
- */
337
- elementId?: string;
338
- /**
339
- * The left coordinate of the scroll bounding area.
340
- */
341
- left?: number;
342
- /**
343
- * The top coordinate of the scroll bounding area.
344
- */
345
- top?: number;
346
- /**
347
- * The width of the scroll bounding area.
348
- */
349
- width?: number;
350
- /**
351
- * The height of the scroll bounding area.
352
- */
353
- height?: number;
354
- /**
355
- * Direction of the scroll.
356
- * Acceptable values are: `up`, `down`, `left` and `right` (case insensitive).
357
- */
358
- direction: string;
359
- /**
360
- * The size of the scroll as a percentage of the scrolling area size.
361
- * Valid values must be float numbers greater than zero, where 1.0 is 100%.
362
- */
363
- percent: number;
364
- /**
365
- * The speed at which to perform this gesture in pixels per second.
366
- * The value must not be negative.
367
- * Default is 5000 * displayDensity.
368
- */
369
- speed?: number;
370
- }
371
- export interface ScrollElementToElementOpts {
372
- /**
373
- * The identifier of the scrollable element, which is going to be scrolled.
374
- * It is required this element is a valid scrollable container and it was located
375
- * by `-android uiautomator` strategy.
376
- */
377
- elementId: string;
378
- /**
379
- * The identifier of the item, which belongs to the scrollable element above,
380
- * and which should become visible after the scrolling operation is finished.
381
- * It is required this element was located by `-android uiautomator` strategy.
382
- */
383
- elementToId: string;
384
- }
385
- export interface ScrollOptions {
386
- /**
387
- * The identifier of an element. It is required this element is a valid scrollable container
388
- * and it was located by `-android uiautomator` strategy.
389
- * If this property is not provided then the first currently available scrollable view
390
- * is selected for the interaction.
391
- */
392
- elementId?: string;
393
- /**
394
- * The following strategies are supported:
395
- * - `accessibility id` (UiSelector().description)
396
- * - `class name` (UiSelector().className)
397
- * - `-android uiautomator` (UiSelector)
398
- */
399
- strategy: string;
400
- /**
401
- * The corresponding lookup value for the given strategy.
402
- */
403
- selector: string;
404
- /**
405
- * The maximum number of swipes to perform on the target scrollable view in order to reach
406
- * the destination element. In case this value is unset then it would be retrieved from the
407
- * scrollable element itself (via `getMaxSearchSwipes()` property).
408
- */
409
- maxSwipes?: number;
410
- /**
411
- * @deprecated
412
- */
413
- element?: string;
414
- }
415
53
  export type RelativeRect = Pick<Rect, 'width' | 'height'> & {
416
54
  left: Rect['x'];
417
55
  top: Rect['y'];
@@ -434,33 +72,8 @@ export interface Screenshot {
434
72
  */
435
73
  payload: string;
436
74
  }
437
- export interface ScreenshotsOpts {
438
- /**
439
- * Android display identifier to take a screenshot for.
440
- * If not provided then screenshots of all displays are going to be returned.
441
- * If no matches were found then an error is thrown.
442
- */
443
- displayId?: number | string;
444
- }
445
75
  export interface ActionResult {
446
76
  repeats: number;
447
77
  stepResults: StringRecord[][];
448
78
  }
449
- export interface ActionArgs {
450
- name: string;
451
- }
452
- export interface SetClipboardOpts {
453
- /**
454
- * Base64-encoded clipboard payload
455
- */
456
- content: string;
457
- /**
458
- * Only a single content type is supported, which is 'plaintext'
459
- */
460
- contentType?: 'plaintext';
461
- /**
462
- * Optinal label to identify the current clipboard payload
463
- */
464
- label?: string;
465
- }
466
79
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/commands/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAElD,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;OAQG;IACH,KAAK,EAAE,YAAY,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,CAAC,SAAS,MAAM,IAAI,IAAI,CAAC,CAAC,EAAE,OAAO,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