appium-xcuitest-driver 10.12.2 → 10.13.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 (40) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/lib/commands/context.d.ts +130 -161
  3. package/build/lib/commands/context.d.ts.map +1 -1
  4. package/build/lib/commands/context.js +122 -107
  5. package/build/lib/commands/context.js.map +1 -1
  6. package/build/lib/commands/execute.js +1 -1
  7. package/build/lib/commands/execute.js.map +1 -1
  8. package/build/lib/commands/general.js +1 -1
  9. package/build/lib/commands/general.js.map +1 -1
  10. package/build/lib/commands/gesture.d.ts +103 -119
  11. package/build/lib/commands/gesture.d.ts.map +1 -1
  12. package/build/lib/commands/gesture.js +98 -138
  13. package/build/lib/commands/gesture.js.map +1 -1
  14. package/build/lib/commands/screenshots.d.ts.map +1 -1
  15. package/build/lib/commands/screenshots.js +3 -5
  16. package/build/lib/commands/screenshots.js.map +1 -1
  17. package/build/lib/commands/timeouts.js +1 -1
  18. package/build/lib/commands/timeouts.js.map +1 -1
  19. package/build/lib/commands/web.d.ts +199 -202
  20. package/build/lib/commands/web.d.ts.map +1 -1
  21. package/build/lib/commands/web.js +216 -175
  22. package/build/lib/commands/web.js.map +1 -1
  23. package/build/lib/driver.d.ts +2 -1
  24. package/build/lib/driver.d.ts.map +1 -1
  25. package/build/lib/driver.js +10 -4
  26. package/build/lib/driver.js.map +1 -1
  27. package/build/lib/execute-method-map.d.ts.map +1 -1
  28. package/build/lib/execute-method-map.js +0 -1
  29. package/build/lib/execute-method-map.js.map +1 -1
  30. package/lib/commands/{context.js → context.ts} +172 -145
  31. package/lib/commands/execute.js +1 -1
  32. package/lib/commands/general.js +1 -1
  33. package/lib/commands/{gesture.js → gesture.ts} +225 -183
  34. package/lib/commands/screenshots.js +3 -5
  35. package/lib/commands/timeouts.js +1 -1
  36. package/lib/commands/{web.js → web.ts} +314 -264
  37. package/lib/driver.ts +11 -4
  38. package/lib/execute-method-map.ts +0 -1
  39. package/npm-shrinkwrap.json +13 -43
  40. package/package.json +1 -1
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.gesturesChainToString = gesturesChainToString;
7
6
  exports.mobileShake = mobileShake;
8
7
  exports.click = click;
9
8
  exports.releaseActions = releaseActions;
@@ -26,39 +25,22 @@ exports.mobileRotateElement = mobileRotateElement;
26
25
  const driver_1 = require("appium/driver");
27
26
  const support_1 = require("appium/support");
28
27
  const lodash_1 = __importDefault(require("lodash"));
28
+ const utils_1 = require("../utils");
29
29
  const SUPPORTED_GESTURE_DIRECTIONS = ['up', 'down', 'left', 'right'];
30
30
  /**
31
+ * Shakes the device.
31
32
  *
32
- * @param {any[]} gestures
33
- * @param {string[]|null} keysToInclude
34
- * @returns {string}
35
- */
36
- function gesturesChainToString(gestures, keysToInclude = ['options']) {
37
- return gestures
38
- .map((item) => {
39
- let otherKeys = lodash_1.default.difference(lodash_1.default.keys(item), ['action']);
40
- otherKeys = lodash_1.default.isArray(keysToInclude) ? lodash_1.default.intersection(otherKeys, keysToInclude) : otherKeys;
41
- if (otherKeys.length) {
42
- return (`${item.action}` +
43
- `(${lodash_1.default.map(otherKeys, (x) => x + '=' + (lodash_1.default.isPlainObject(item[x]) ? JSON.stringify(item[x]) : item[x])).join(', ')})`);
44
- }
45
- return item.action;
46
- })
47
- .join('-');
48
- }
49
- /**
50
- * Shake the device
51
- * @this {XCUITestDriver}
52
33
  * @group Simulator Only
34
+ * @throws {Error} If called on a real device
53
35
  */
54
36
  async function mobileShake() {
55
- if (!this.isSimulator()) {
56
- throw new driver_1.errors.UnknownError('Shake is not supported on real devices');
57
- }
58
- await /** @type {import('appium-ios-simulator').Simulator} */ (this.device).shake();
37
+ await utils_1.assertSimulator.call(this, 'Shake device').shake();
59
38
  }
60
39
  /**
61
- * @this {XCUITestDriver}
40
+ * Clicks on an element.
41
+ *
42
+ * In web context, uses native web tap if configured, otherwise uses atom-based clicking.
43
+ * In native context, delegates to native click.
62
44
  */
63
45
  async function click(el) {
64
46
  if (!this.isWebContext()) {
@@ -91,15 +73,20 @@ async function click(el) {
91
73
  }
92
74
  }
93
75
  /**
94
- * @this {XCUITestDriver}
76
+ * Releases all actions.
77
+ *
78
+ * On this platform, this is a no-op.
95
79
  */
96
80
  async function releaseActions() {
97
- this.log.warn('On this platform, releaseActions is a no-op');
81
+ this.log.info('On this platform, releaseActions is a no-op');
98
82
  }
99
83
  /**
100
- * @param {import('@appium/types').ActionSequence[]} actions
101
- * @returns {Promise<void>}
102
- * @this {XCUITestDriver}
84
+ * Performs a sequence of W3C actions.
85
+ *
86
+ * Automatically converts MOUSE pointer type to TOUCH and filters out zero-duration pauses.
87
+ *
88
+ * @param actions - Array of action sequences to perform
89
+ * @throws {errors.InvalidArgumentError} If actions contain web elements
103
90
  */
104
91
  async function performActions(actions) {
105
92
  this.log.debug(`Received the following W3C actions: ${JSON.stringify(actions, null, ' ')}`);
@@ -127,13 +114,14 @@ async function performActions(actions) {
127
114
  await this.proxyCommand('/actions', 'POST', { actions: preprocessedActions });
128
115
  }
129
116
  /**
130
- * @param {import('@appium/types').Element|string} el
131
- * @this {XCUITestDriver}
117
+ * Performs a native click on an element.
118
+ *
119
+ * @param el - Element to click
132
120
  * @group Native Only
133
121
  */
134
122
  async function nativeClick(el) {
135
123
  el = support_1.util.unwrapElement(el);
136
- let endpoint = `/element/${el}/click`;
124
+ const endpoint = `/element/${el}/click`;
137
125
  return await this.proxyCommand(endpoint, 'POST', {});
138
126
  }
139
127
  /**
@@ -144,17 +132,15 @@ async function nativeClick(el) {
144
132
  * This API uses native XCTest calls, so it is performant. The same native call is implicitly performed by a `click` command if the destination element is outside the current viewport.
145
133
  *
146
134
  * @since 4.7.0
147
- * @throws If the scrolling action cannot be performed
135
+ * @param elementId - The internal element identifier (as hexadecimal hash string) to scroll to. The destination element must be located in a scrollable container and must be hittable. If the element is already present in the current viewport then no action is performed.
136
+ * @throws {errors.InvalidArgumentError} If elementId is not provided
148
137
  * @privateRemarks See https://github.com/facebook/WebDriverAgent/blob/master/WebDriverAgentLib/Commands/FBElementCommands.m for details on WDA gestures API
149
- * @param {Element|string} elementId - The internal element identifier (as hexadecimal hash string) to scroll to. The destination element must be located in a scrollable container and must be hittable. If the element is already present in the current viewport then no action is performed.
150
- * @returns {Promise<void>}
151
- * @this {XCUITestDriver}
152
138
  */
153
139
  async function mobileScrollToElement(elementId) {
154
140
  if (!elementId) {
155
141
  throw new driver_1.errors.InvalidArgumentError('Element id must be provided');
156
142
  }
157
- return await this.proxyCommand(`/wda/element/${elementId}/scrollTo`, 'POST', {});
143
+ return await this.proxyCommand(`/wda/element/${support_1.util.unwrapElement(elementId)}/scrollTo`, 'POST', {});
158
144
  }
159
145
  /**
160
146
  * Scrolls an element or the entire screen.
@@ -170,30 +156,19 @@ async function mobileScrollToElement(elementId) {
170
156
  * - If it is necessary to perform many scroll gestures on parent container to reach the necessary child element (tens of them), then the method call may fail. *
171
157
  * - The implementation of this extension relies on several undocumented XCTest features, which might not always be reliable.
172
158
  *
173
- * @param {string} [name] - The internal element identifier (as hexadecimal hash string) to scroll on (e.g. the container). The Application element will be used if this argument is not provided.
174
- * @param {import('./types').Direction} [direction] - The main difference between this command and a `mobile: swipe` command using the same direction is that `mobile: scroll` will attempt to move the current viewport exactly to the next or previous page (the term "page" means the content, which fits into a single device screen).
175
- * @param {string} [predicateString] - The `NSPredicate` locator of the child element, to which the scrolling should be performed. Has no effect if `elementId` is not a container.
176
- * @param {boolean} [toVisible] - If `true`, scrolls to the first visible `elementId` in the parent container. Has no effect if `elementId` is unset.
177
- * @param {number} [distance] - A ratio of the screen height; `1.0` means a full-screen-worth of scrolling.
178
- * @param {Element|string} [elementId] - Element ID or Element used in various strategies.
179
- * @returns {Promise<void>}
180
- * @this {XCUITestDriver}
159
+ * @param name - The internal element identifier (as hexadecimal hash string) to scroll on (e.g. the container). The Application element will be used if this argument is not provided.
160
+ * @param direction - The main difference between this command and a `mobile: swipe` command using the same direction is that `mobile: scroll` will attempt to move the current viewport exactly to the next or previous page (the term "page" means the content, which fits into a single device screen).
161
+ * @param predicateString - The `NSPredicate` locator of the child element, to which the scrolling should be performed. Has no effect if `elementId` is not a container.
162
+ * @param toVisible - If `true`, scrolls to the first visible `elementId` in the parent container. Has no effect if `elementId` is unset.
163
+ * @param distance - A ratio of the screen height; `1.0` means a full-screen-worth of scrolling.
164
+ * @param elementId - Element ID or Element used in various strategies.
165
+ * @throws {errors.InvalidArgumentError} If no valid strategy is provided or if direction is invalid
181
166
  * @example
182
167
  * ```python
183
168
  * driver.execute_script('mobile: scroll', {'direction': 'down'})
184
169
  * ```
185
170
  */
186
171
  async function mobileScroll(name, direction, predicateString, toVisible, distance, elementId) {
187
- /**
188
- * @todo This should be defined in WDA instead.
189
- * @typedef WdaScrollParams
190
- * @property {string} [name]
191
- * @property {import('./types').Direction} [direction]
192
- * @property {string} [predicateString]
193
- * @property {boolean} [toVisible]
194
- * @property {number} [distance]
195
- */
196
- /** @type {WdaScrollParams} */
197
172
  const params = {};
198
173
  if (name) {
199
174
  params.name = name;
@@ -223,10 +198,12 @@ async function mobileScroll(name, direction, predicateString, toVisible, distanc
223
198
  return await this.proxyCommand(endpoint, 'POST', params);
224
199
  }
225
200
  /**
226
- * @param {import('./types').Direction} direction
227
- * @param {number} [velocity]
228
- * @param {Element|string} [elementId]
229
- * @this {XCUITestDriver}
201
+ * Performs a swipe gesture in the specified direction.
202
+ *
203
+ * @param direction - Direction to swipe ('up', 'down', 'left', or 'right')
204
+ * @param velocity - Optional velocity of the swipe
205
+ * @param elementId - Optional element to swipe on. If not provided, swipes on the application element
206
+ * @throws {errors.InvalidArgumentError} If direction is invalid
230
207
  */
231
208
  async function mobileSwipe(direction, velocity, elementId) {
232
209
  if (!SUPPORTED_GESTURE_DIRECTIONS.includes(lodash_1.default.toLower(direction))) {
@@ -242,11 +219,9 @@ async function mobileSwipe(direction, velocity, elementId) {
242
219
  /**
243
220
  * Performs a pinch gesture on the given element or on the Application element.
244
221
  *
245
- * @param {number} scale - Pinch scale (float value). A value between `0` and `1` performs a "pinch close" (or "zoom out"); a value greater than `1` performs a "pinch open" ("zoom in").
246
- * @param {number} velocity - The velocity of the pinch in scale factor per second (float value).
247
- * @param {Element|string} [elementId] The internal element identifier (as hexadecimal hash string) to pinch on. The Application element will be used if this parameter is not provided.
248
- * @returns {Promise<void>}
249
- * @this {XCUITestDriver}
222
+ * @param scale - Pinch scale (float value). A value between `0` and `1` performs a "pinch close" (or "zoom out"); a value greater than `1` performs a "pinch open" ("zoom in").
223
+ * @param velocity - The velocity of the pinch in scale factor per second (float value).
224
+ * @param elementId - The internal element identifier (as hexadecimal hash string) to pinch on. The Application element will be used if this parameter is not provided.
250
225
  * @see https://developer.apple.com/documentation/xctest/xcuielement/1618669-pinchwithscale?language=objc
251
226
  * @example
252
227
  *
@@ -265,11 +240,9 @@ async function mobilePinch(scale, velocity, elementId) {
265
240
  /**
266
241
  * Performs double tap gesture on the given element or on the screen.
267
242
  *
268
- * @param {Element|string} [elementId] - The internal element identifier (as hexadecimal hash string) to double tap on. The Application element will be used if this parameter is not provided.
269
- * @param {number} [x] - The _x_ coordinate (float value) to double tap on.
270
- * @param {number} [y] - The _y_ coordinate (float value) to double tap on.
271
- * @returns {Promise<void>}
272
- * @this {XCUITestDriver}
243
+ * @param elementId - The internal element identifier (as hexadecimal hash string) to double tap on. The Application element will be used if this parameter is not provided.
244
+ * @param x - The _x_ coordinate (float value) to double tap on.
245
+ * @param y - The _y_ coordinate (float value) to double tap on.
273
246
  * @example
274
247
  * ```javascript
275
248
  * // using WebdriverIO
@@ -283,9 +256,7 @@ async function mobileDoubleTap(elementId, x, y) {
283
256
  /**
284
257
  * Performs two finger tap gesture on the given element or on the application element.
285
258
  *
286
- * @param {Element|string} [elementId] - The internal element identifier (as hexadecimal hash string) to double tap on. The Application element will be used if this parameter is not provided.
287
- * @returns {Promise<void>}
288
- * @this {XCUITestDriver}
259
+ * @param elementId - The internal element identifier (as hexadecimal hash string) to double tap on. The Application element will be used if this parameter is not provided.
289
260
  * @see https://developer.apple.com/documentation/xctest/xcuielement/1618675-twofingertap?language=objc
290
261
  * @example
291
262
  * ```csharp
@@ -301,11 +272,10 @@ async function mobileTwoFingerTap(elementId) {
301
272
  /**
302
273
  * Performs a "long press" gesture on the given element or on the screen.
303
274
  *
304
- * @param {number} duration - The duration (in seconds) of the gesture.
305
- * @param {number} [y] - The _y_ coordinate (float value) to hold on.
306
- * @param {number} [x] - The _x_ coordinate (float value) to hold on.
307
- * @param {Element|string} [elementId] - The internal element identifier (as hexadecimal hash string) to double tap on. The Application element will be used if this parameter is not provided.
308
- * @this {XCUITestDriver}
275
+ * @param duration - The duration (in seconds) of the gesture.
276
+ * @param x - The _x_ coordinate (float value) to hold on.
277
+ * @param y - The _y_ coordinate (float value) to hold on.
278
+ * @param elementId - The internal element identifier (as hexadecimal hash string) to hold on. The Application element will be used if this parameter is not provided.
309
279
  * @see https://developer.apple.com/documentation/xctest/xcuielement/1618663-pressforduration?language=objc
310
280
  * @example
311
281
  * ```csharp
@@ -325,11 +295,9 @@ async function mobileTouchAndHold(duration, x, y, elementId) {
325
295
  /**
326
296
  * Performs tap gesture by coordinates on the given element or on the screen.
327
297
  *
328
- * @param {number} x - The _x_ coordinate (float value) to tap on. If `elementId` is provided, this is computed relative to the element; otherwise it is computed relative to the active Application element.
329
- * @param {number} y - The _y_ coordinate (float value) to tap on. If `elementId` is provided, this is computed relative to the element; otherwise it is computed relative to the active Application element.
330
- * @param {string|Element} [elementId] - The internal element identifier (as hexadecimal hash string) to tap on. The Application element will be used if this parameter is not provided.
331
- * @this {XCUITestDriver}
332
- * @returns {Promise<void>}
298
+ * @param x - The _x_ coordinate (float value) to tap on. If `elementId` is provided, this is computed relative to the element; otherwise it is computed relative to the active Application element.
299
+ * @param y - The _y_ coordinate (float value) to tap on. If `elementId` is provided, this is computed relative to the element; otherwise it is computed relative to the active Application element.
300
+ * @param elementId - The internal element identifier (as hexadecimal hash string) to tap on. The Application element will be used if this parameter is not provided.
333
301
  */
334
302
  async function mobileTap(x, y, elementId) {
335
303
  const endpoint = elementId ? `/wda/element/${support_1.util.unwrapElement(elementId)}/tap` : '/wda/tap';
@@ -338,15 +306,13 @@ async function mobileTap(x, y, elementId) {
338
306
  /**
339
307
  * Performs drag and drop gesture by coordinates on the given element or on the screen.
340
308
  *
341
- * @param {number} duration - The duration (in seconds) of the gesture. Must be between `0.5` and `60.0`, inclusive.
342
- * @param {number} fromX - The _x_ coordinate (float value) of the starting drag point.
343
- * @param {number} fromY - The _y_ coordinate (float value) of the starting drag point.
344
- * @param {number} toX - The _x_ coordinate (float value) of the ending drag point.
345
- * @param {number} toY - The _y_ coordinate (float value) of the ending drag point.
346
- * @param {string|Element} [elementId] - The internal element identifier (as hexadecimal hash string) to drag. If provided, all coordinates will be calculated relative to this element; otherwise they will be calculated relative to the active Application element.
347
- * @returns {Promise<void>}
309
+ * @param duration - The duration (in seconds) of the gesture. Must be between `0.5` and `60.0`, inclusive.
310
+ * @param fromX - The _x_ coordinate (float value) of the starting drag point.
311
+ * @param fromY - The _y_ coordinate (float value) of the starting drag point.
312
+ * @param toX - The _x_ coordinate (float value) of the ending drag point.
313
+ * @param toY - The _y_ coordinate (float value) of the ending drag point.
314
+ * @param elementId - The internal element identifier (as hexadecimal hash string) to drag. If provided, all coordinates will be calculated relative to this element; otherwise they will be calculated relative to the active Application element.
348
315
  * @see https://developer.apple.com/documentation/xctest/xcuielement/1500989-clickforduration?language=objc
349
- * @this {XCUITestDriver}
350
316
  * @example
351
317
  * ```java
352
318
  * JavascriptExecutor js = (JavascriptExecutor) driver;
@@ -377,19 +343,18 @@ async function mobileDragFromToForDuration(duration, fromX, fromY, toX, toY, ele
377
343
  /**
378
344
  * Initiates a press-and-hold gesture, drags to another coordinate or an element with a given velocity, and holds for a given duration.
379
345
  *
380
- * @param {number} pressDuration - The duration (in seconds) of the press-and-hold gesture at the starting point. Must be between `0.5` and `60.0`, inclusive.
381
- * @param {number} holdDuration - The duration (in seconds) of the hold gesture at the ending point (after dragging). Must be between `0.5` and `60.0`, inclusive.
382
- * @param {number} velocity - The speed (in pixels-per-second) which to move from the initial position to the end position.
383
- * @param {string|Element} [fromElementId] - The internal element identifier (as hexadecimal hash string) to drag from. Absolute screen coordinates are expected if this argument is not provided.
384
- * @param {string|Element} [toElementId] - The internal element identifier (as hexadecimal hash string) to drag to. Absolute screen coordinates are expected if this argument is not provided.
385
- * @param {number} [fromX] - The _x_ coordinate (float value) of the starting drag point.
386
- * @param {number} [fromY] - The _y_ coordinate (float value) of the starting drag point.
387
- * @param {number} [toX] - The _x_ coordinate (float value) of the ending drag point.
388
- * @param {number} [toY] - The _y_ coordinate (float value) of the ending drag point.
389
- * @returns {Promise<void>}
346
+ * @param pressDuration - The duration (in seconds) of the press-and-hold gesture at the starting point. Must be between `0.5` and `60.0`, inclusive.
347
+ * @param holdDuration - The duration (in seconds) of the hold gesture at the ending point (after dragging). Must be between `0.5` and `60.0`, inclusive.
348
+ * @param velocity - The speed (in pixels-per-second) which to move from the initial position to the end position.
349
+ * @param fromElementId - The internal element identifier (as hexadecimal hash string) to drag from. Absolute screen coordinates are expected if this argument is not provided.
350
+ * @param toElementId - The internal element identifier (as hexadecimal hash string) to drag to. Absolute screen coordinates are expected if this argument is not provided.
351
+ * @param fromX - The _x_ coordinate (float value) of the starting drag point.
352
+ * @param fromY - The _y_ coordinate (float value) of the starting drag point.
353
+ * @param toX - The _x_ coordinate (float value) of the ending drag point.
354
+ * @param toY - The _y_ coordinate (float value) of the ending drag point.
355
+ * @throws {errors.InvalidArgumentError} If toElementId is missing when fromElementId is provided, or if coordinates are missing when fromElementId is not provided
390
356
  * @see https://developer.apple.com/documentation/xctest/xcuielement/3551693-pressforduration?language=objc
391
357
  * @see https://developer.apple.com/documentation/xctest/xcuicoordinate/3551692-pressforduration?language=objc
392
- * @this {XCUITestDriver}
393
358
  */
394
359
  async function mobileDragFromToWithVelocity(pressDuration, holdDuration, velocity, fromElementId, toElementId, fromX, fromY, toX, toY) {
395
360
  const params = {
@@ -406,6 +371,9 @@ async function mobileDragFromToWithVelocity(pressDuration, holdDuration, velocit
406
371
  params.toElement = toElementId;
407
372
  return await this.proxyCommand(`/wda/element/${fromElementId}/pressAndDragWithVelocity`, 'POST', params);
408
373
  }
374
+ if (fromX === undefined || fromY === undefined || toX === undefined || toY === undefined) {
375
+ throw new driver_1.errors.InvalidArgumentError('When fromElementId is not provided, fromX, fromY, toX, and toY must all be provided');
376
+ }
409
377
  params.fromX = requireFloat(fromX, 'fromX');
410
378
  params.fromY = requireFloat(fromY, 'fromY');
411
379
  params.toX = requireFloat(toX, 'toX');
@@ -416,12 +384,9 @@ async function mobileDragFromToWithVelocity(pressDuration, holdDuration, velocit
416
384
  * Sends one or more taps with one or more touch points.
417
385
  *
418
386
  * @since 1.17.1
419
- * @param {number} [numberOfTaps=1] - Number of taps to perform.
420
- * @param {number} [numberOfTouches=1] - Number of touch points to use.
421
- * @param {string|Element} [elementId] - The internal element identifier (as hexadecimal hash string) to perform one or more taps.
422
- * The Application element will be used if this parameter is not provided.
423
- * @returns {Promise<void>}
424
- * @this {XCUITestDriver}
387
+ * @param numberOfTaps - Number of taps to perform.
388
+ * @param numberOfTouches - Number of touch points to use.
389
+ * @param elementId - The internal element identifier (as hexadecimal hash string) to perform one or more taps. The Application element will be used if this parameter is not provided.
425
390
  * @see https://developer.apple.com/documentation/xctest/xcuielement/1618671-tapwithnumberoftaps?language=objc
426
391
  * @example
427
392
  * ```ruby
@@ -443,14 +408,12 @@ async function mobileTapWithNumberOfTaps(numberOfTouches = 1, numberOfTaps = 1,
443
408
  * Performs a "force press" on the given element or coordinates.
444
409
  *
445
410
  * @throws If the target device does not support the "force press" gesture.
446
- * @param {number} [x] - The _x_ coordinate of the gesture. If `elementId` is set, this is calculated relative to its position; otherwise it's calculated relative to the active Application.
447
- * @param {number} [y] - The _y_ coordinate of the gesture. If `elementId` is set, this is calculated relative to its position; otherwise it's calculated relative to the active Application.
448
- * @param {number} [duration] - The duration (in seconds) of the force press. If this is provided, `pressure` must also be provided.
449
- * @param {number} [pressure] - A float value defining the pressure of the force press. If this is provided, `duration` must also be provided.
450
- * @param {string|Element} [elementId] - The internal element identifier (as hexadecimal hash string) to perform one or more taps.
451
- * The Application element will be used if this parameter is not provided.
452
- * @returns {Promise<void>}
453
- * @this {XCUITestDriver}
411
+ * @param x - The _x_ coordinate of the gesture. If `elementId` is set, this is calculated relative to its position; otherwise it's calculated relative to the active Application.
412
+ * @param y - The _y_ coordinate of the gesture. If `elementId` is set, this is calculated relative to its position; otherwise it's calculated relative to the active Application.
413
+ * @param duration - The duration (in seconds) of the force press. If this is provided, `pressure` must also be provided.
414
+ * @param pressure - A float value defining the pressure of the force press. If this is provided, `duration` must also be provided.
415
+ * @param elementId - The internal element identifier (as hexadecimal hash string) to perform one or more taps. The Application element will be used if this parameter is not provided.
416
+ * @throws {Error} If the target device does not support the "force press" gesture
454
417
  */
455
418
  async function mobileForcePress(x, y, duration, pressure, elementId) {
456
419
  const endpoint = elementId ? `/wda/element/${support_1.util.unwrapElement(elementId)}/forceTouch` : `/wda/forceTouch`;
@@ -462,12 +425,12 @@ async function mobileForcePress(x, y, duration, pressure, elementId) {
462
425
  * This might be useful if these values are populated dynamically; you don't know which one to select, or the value selection using the `sendKeys` API does not work (for whatever reason).
463
426
  *
464
427
  * @throws Upon failure to change the current picker value.
465
- * @param {string|Element} elementId - `PickerWheel`'s internal element ID as hexadecimal hash string. Value selection will be performed on this element. This element must be of type `XCUIElementTypePickerWheel`.
466
- * @param {'next'|'previous'} order - Either `next` to select the value _next_ to the current from the target picker wheel, or `previous` to select the _previous_ value.
467
- * @param {number} [offset=0.2] - The value in range `[0.01, 0.5]`. It defines how far from picker wheel's center the click should happen. The actual distance is calculated by multiplying this value to the actual picker wheel height. Too small an offset value may not change the picker wheel value at all, and too high a value may cause the wheel to switch two or more values at once. Usually the optimal value is located in range `[0.15, 0.3]`.
468
- * @param {string?} [value=undefined] - If provided WDA will try to automatically scroll in the given direction until the actual picker value reaches the expected one or the amount of scrolling attempts is exceeded.
469
- * @param {number} [maxAttempts=25] - The maximum number of scrolling attempts to reach `value` before an error will be thrown. Only makes sense in combination with `value`.
470
- * @this {XCUITestDriver}
428
+ * @param elementId - `PickerWheel`'s internal element ID as hexadecimal hash string. Value selection will be performed on this element. This element must be of type `XCUIElementTypePickerWheel`.
429
+ * @param order - Either `next` to select the value _next_ to the current from the target picker wheel, or `previous` to select the _previous_ value.
430
+ * @param offset - The value in range `[0.01, 0.5]`. It defines how far from picker wheel's center the click should happen. The actual distance is calculated by multiplying this value to the actual picker wheel height. Too small an offset value may not change the picker wheel value at all, and too high a value may cause the wheel to switch two or more values at once. Usually the optimal value is located in range `[0.15, 0.3]`.
431
+ * @param value - If provided WDA will try to automatically scroll in the given direction until the actual picker value reaches the expected one or the amount of scrolling attempts is exceeded.
432
+ * @param maxAttempts - The maximum number of scrolling attempts to reach `value` before an error will be thrown. Only makes sense in combination with `value`.
433
+ * @throws {errors.InvalidArgumentError} If elementId is not provided or if order is invalid
471
434
  * @example
472
435
  * ```java
473
436
  * JavascriptExecutor js = (JavascriptExecutor) driver;
@@ -502,12 +465,10 @@ async function mobileSelectPickerWheelValue(elementId, order, offset, value, max
502
465
  * Performs a rotate gesture on the given element.
503
466
  *
504
467
  * @see https://developer.apple.com/documentation/xctest/xcuielement/1618665-rotate?language=objc
505
- * @param {number} rotation - The rotation gesture (in radians)
506
- * @param {number} velocity - The velocity (in radians-per-second) of the gesture.
507
- * @param {string|Element} [elementId] - The internal element identifier (as hexadecimal hash string) to perform the gesture on.
468
+ * @param rotation - The rotation gesture (in radians)
469
+ * @param velocity - The velocity (in radians-per-second) of the gesture.
470
+ * @param elementId - The internal element identifier (as hexadecimal hash string) to perform the gesture on.
508
471
  * The Application element will be used if this parameter is not provided.
509
- * @returns {Promise<void>}
510
- * @this {XCUITestDriver}
511
472
  * @example
512
473
  * ```java
513
474
  * JavascriptExecutor js = (JavascriptExecutor) driver;
@@ -526,10 +487,13 @@ async function mobileRotateElement(rotation, velocity, elementId) {
526
487
  velocity: requireFloat(velocity, 'velocity'),
527
488
  };
528
489
  const endpoint = elementId ? `/wda/element/${support_1.util.unwrapElement(elementId)}/rotate` : '/wda/rotate';
529
- return await this.proxyCommand(endpoint, 'POST', params);
490
+ await this.proxyCommand(endpoint, 'POST', params);
530
491
  }
531
492
  /**
532
- * @param {import('@appium/types').ActionSequence[]} actionSeq
493
+ * Asserts that the action sequence does not contain web elements.
494
+ *
495
+ * @param actionSeq - Action sequence to check
496
+ * @throws {errors.InvalidArgumentError} If web elements are found in the action sequence
533
497
  */
534
498
  function assertNoWebElements(actionSeq) {
535
499
  const isOriginWebElement = (gesture) => lodash_1.default.isPlainObject(gesture) && 'origin' in gesture && JSON.stringify(gesture.origin).includes(':wdc:');
@@ -546,10 +510,10 @@ function assertNoWebElements(actionSeq) {
546
510
  /**
547
511
  * Converts the given value to a float number.
548
512
  *
549
- * @throws If `value` is `NaN`
550
- * @param {any} value
551
- * @param {string} paramName
552
- * @returns {number}
513
+ * @param value - Value to convert
514
+ * @param paramName - Name of the parameter (for error messages)
515
+ * @returns The float value
516
+ * @throws {errors.InvalidArgumentError} If `value` is `NaN`
553
517
  */
554
518
  function requireFloat(value, paramName) {
555
519
  const num = parseFloat(String(value));
@@ -558,8 +522,4 @@ function requireFloat(value, paramName) {
558
522
  }
559
523
  return num;
560
524
  }
561
- /**
562
- * @typedef {import('../driver').XCUITestDriver} XCUITestDriver
563
- * @typedef {import('@appium/types').Element} Element
564
- */
565
525
  //# sourceMappingURL=gesture.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gesture.js","sourceRoot":"","sources":["../../../lib/commands/gesture.js"],"names":[],"mappings":";;;;;AAYA,sDAiBC;AAOD,kCAKC;AAKD,sBA2BC;A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AAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"screenshots.d.ts","sourceRoot":"","sources":["../../../lib/commands/screenshots.js"],"names":[],"mappings":"AAKA;;;GAGG;AACH,yEAFa,OAAO,CAAC,MAAM,CAAC,CAgE3B;AAED;;GAEG;AACH,yGAoBC;AAED;;;GAGG;AACH,iFAFa,OAAO,CAAC,MAAM,CAAC,CAgC3B;6BAGY,OAAO,WAAW,EAAE,cAAc"}
1
+ {"version":3,"file":"screenshots.d.ts","sourceRoot":"","sources":["../../../lib/commands/screenshots.js"],"names":[],"mappings":"AAKA;;;GAGG;AACH,yEAFa,OAAO,CAAC,MAAM,CAAC,CAgE3B;AAED;;GAEG;AACH,yGAmBC;AAED;;;GAGG;AACH,iFAFa,OAAO,CAAC,MAAM,CAAC,CA+B3B;6BAGY,OAAO,WAAW,EAAE,cAAc"}
@@ -20,7 +20,7 @@ async function getScreenshot() {
20
20
  switch (lodash_1.default.toLower(webScreenshotMode)) {
21
21
  case 'page':
22
22
  case 'viewport':
23
- return await ( /** @type {import('appium-remote-debugger').RemoteDebugger} */(this.remote)).captureScreenshot({
23
+ return await this.remote.captureScreenshot({
24
24
  coordinateSystem: /** @type {'Viewport'|'Page'} */ (lodash_1.default.capitalize(webScreenshotMode)),
25
25
  });
26
26
  case 'native':
@@ -81,8 +81,7 @@ async function getElementScreenshot(el) {
81
81
  throw new driver_1.errors.UnableToCaptureScreen('Cannot take a screenshot of a zero-size element');
82
82
  }
83
83
  const { x, y } = await this.executeAtom('get_top_left_coordinates', [atomsElement]);
84
- return await ( /** @type {import('appium-remote-debugger').RemoteDebugger} */(this.remote))
85
- .captureScreenshot({ rect: { x, y, width, height } });
84
+ return await this.remote.captureScreenshot({ rect: { x, y, width, height } });
86
85
  }
87
86
  const data = await this.proxyCommand(`/element/${el}/screenshot`, 'GET');
88
87
  if (!lodash_1.default.isString(data)) {
@@ -96,8 +95,7 @@ async function getElementScreenshot(el) {
96
95
  */
97
96
  async function getViewportScreenshot() {
98
97
  if (this.isWebContext()) {
99
- return await ( /** @type {import('appium-remote-debugger').RemoteDebugger} */(this.remote))
100
- .captureScreenshot();
98
+ return await this.remote.captureScreenshot();
101
99
  }
102
100
  const screenshot = await this.getScreenshot();
103
101
  // if we don't have a status bar, there's nothing to crop, so we can avoid
@@ -1 +1 @@
1
- {"version":3,"file":"screenshots.js","sourceRoot":"","sources":["../../../lib/commands/screenshots.js"],"names":[],"mappings":";;;;;AASA,sCA8DC;AAKD,oDAoBC;AAMD,sDA8BC;AApID,uCAAuC;AACvC,oDAAuB;AACvB,0CAAqC;AACrC,4CAA+C;AAE/C;;;GAGG;AACI,KAAK,UAAU,aAAa;IACjC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC;QACxB,MAAM,iBAAiB,GAAG,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,iBAAiB,CAAC;QAChF,QAAQ,gBAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,CAAC;YACrC,KAAK,MAAM,CAAC;YACZ,KAAK,UAAU;gBACb,OAAO,MAAM,EAAC,8DAA+D,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC;oBAC5G,gBAAgB,EAAE,gCAAgC,CAAC,CAAC,gBAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;iBACrF,CAAC,CAAC;YACL,KAAK,QAAQ,CAAC;YACd,KAAK,SAAS,CAAC;YACf,KAAK,IAAI;gBACP,MAAM;YACR;gBACE,IAAI,CAAC,GAAG,CAAC,IAAI,CACX,wCAAwC,iBAAiB,kBAAkB;oBAC3E,mFAAmF,CACpF,CAAC;gBACF,MAAM;QACV,CAAC;IACH,CAAC;IAED,MAAM,oBAAoB,GAAG,KAAK,IAAI,EAAE;QACtC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAC7C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,CAAC;IACtC,CAAC;IACD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,6BAA6B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACtE,OAAO,MAAM,mBAAS,CAAC,eAAe,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAC7D,CAAC;AAED;;GAEG"}
@@ -53,7 +53,7 @@ async function asyncScriptTimeout(ms) {
53
53
  function setPageLoadTimeout(ms) {
54
54
  ms = parseInt(ms, 10);
55
55
  this.pageLoadMs = ms;
56
- if (this.remote) {
56
+ if (this._remote) {
57
57
  this.remote.pageLoadMs = ms;
58
58
  }
59
59
  this.log.debug(`Set page load timeout to ${ms}ms`);
@@ -1 +1 @@
1
- {"version":3,"file":"timeouts.js","sourceRoot":"","sources":["../../../lib/commands/timeouts.js"],"names":[],"mappings":";;AAGA,gDAEC;AAKD,wDAEC;AAKD,4CAGC;AASD,oDAEC;AAUD,gDAEC;AAKD,gDAOC;AAKD,sDAGC;AA/DD;;GAEG;AACI,KAAK,UAAU,kBAAkB,CAAC,EAAE;IACzC,MAAM,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED;;GAEG;AACI,KAAK,UAAU,sBAAsB,CAAC,EAAE;IAC7C,MAAM,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED;;GAEG;AACI,KAAK,UAAU,gBAAgB,CAAC,EAAE;IACvC,2BAA2B;IAC3B,MAAM,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC,CAAC;AAClE,CAAC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,oBAAoB,CAAC,EAAE;IAC3C,MAAM,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;AACpC,CAAC;AAED;;;;;;;GA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