appium-mac2-driver 3.2.3 → 3.2.5

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 (53) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/build/lib/commands/app-management.d.ts +18 -21
  3. package/build/lib/commands/app-management.d.ts.map +1 -1
  4. package/build/lib/commands/app-management.js +14 -25
  5. package/build/lib/commands/app-management.js.map +1 -1
  6. package/build/lib/commands/applescript.d.ts +8 -9
  7. package/build/lib/commands/applescript.d.ts.map +1 -1
  8. package/build/lib/commands/applescript.js +14 -13
  9. package/build/lib/commands/applescript.js.map +1 -1
  10. package/build/lib/commands/execute.d.ts +5 -8
  11. package/build/lib/commands/execute.d.ts.map +1 -1
  12. package/build/lib/commands/execute.js +5 -13
  13. package/build/lib/commands/execute.js.map +1 -1
  14. package/build/lib/commands/find.d.ts +6 -8
  15. package/build/lib/commands/find.d.ts.map +1 -1
  16. package/build/lib/commands/find.js +8 -13
  17. package/build/lib/commands/find.js.map +1 -1
  18. package/build/lib/commands/gestures.d.ts +105 -118
  19. package/build/lib/commands/gestures.d.ts.map +1 -1
  20. package/build/lib/commands/gestures.js +141 -154
  21. package/build/lib/commands/gestures.js.map +1 -1
  22. package/build/lib/commands/navigation.d.ts +4 -6
  23. package/build/lib/commands/navigation.d.ts.map +1 -1
  24. package/build/lib/commands/navigation.js +2 -8
  25. package/build/lib/commands/navigation.js.map +1 -1
  26. package/build/lib/commands/record-screen.d.ts +57 -98
  27. package/build/lib/commands/record-screen.d.ts.map +1 -1
  28. package/build/lib/commands/record-screen.js +81 -84
  29. package/build/lib/commands/record-screen.js.map +1 -1
  30. package/build/lib/commands/screenshots.d.ts +5 -5
  31. package/build/lib/commands/screenshots.d.ts.map +1 -1
  32. package/build/lib/commands/screenshots.js +3 -8
  33. package/build/lib/commands/screenshots.js.map +1 -1
  34. package/build/lib/commands/source.d.ts +4 -5
  35. package/build/lib/commands/source.d.ts.map +1 -1
  36. package/build/lib/commands/source.js +3 -8
  37. package/build/lib/commands/source.js.map +1 -1
  38. package/lib/commands/app-management.ts +88 -0
  39. package/lib/commands/{applescript.js → applescript.ts} +28 -24
  40. package/lib/commands/execute.ts +32 -0
  41. package/lib/commands/find.ts +34 -0
  42. package/lib/commands/{gestures.js → gestures.ts} +333 -238
  43. package/lib/commands/navigation.ts +19 -0
  44. package/lib/commands/{record-screen.js → record-screen.ts} +165 -138
  45. package/lib/commands/screenshots.ts +18 -0
  46. package/lib/commands/{source.js → source.ts} +10 -11
  47. package/npm-shrinkwrap.json +128 -171
  48. package/package.json +2 -2
  49. package/lib/commands/app-management.js +0 -83
  50. package/lib/commands/execute.js +0 -33
  51. package/lib/commands/find.js +0 -31
  52. package/lib/commands/navigation.js +0 -18
  53. package/lib/commands/screenshots.js +0 -18
@@ -27,33 +27,31 @@ const driver_1 = require("appium/driver");
27
27
  * This is not exposed as 'macos: setValue' because this is the same as
28
28
  * element.send_keys in W3C WebDriver spec.
29
29
  *
30
- * @this {Mac2Driver}
31
- * @param {string} elementId Uuid of the element to set value for.
32
- * @param {any} [value] Value to set. Could also be an array.
33
- * @param {string} [text] Text to set. If both value and text are set then `value` is preferred
34
- * @param {number} [keyModifierFlags] If set then the given key modifiers will
30
+ * @param elementId - Uuid of the element to set value for.
31
+ * @param value - Value to set. Could also be an array.
32
+ * @param text - Text to set. If both value and text are set then `value` is preferred
33
+ * @param keyModifierFlags - If set then the given key modifiers will
35
34
  * be applied while the element value is being set. See
36
35
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
37
36
  * for more details.
38
37
  */
39
38
  async function macosSetValue(elementId, value, text, keyModifierFlags) {
40
39
  return await this.wda.proxy.command(`/element/${elementId}/value`, 'POST', {
41
- value, text,
40
+ value,
41
+ text,
42
42
  keyModifierFlags,
43
43
  });
44
44
  }
45
- ;
46
45
  /**
47
46
  * Perform click gesture on an element or by relative/absolute coordinates
48
47
  *
49
- * @this {Mac2Driver}
50
- * @param {string} [elementId] Uuid of the element to click. Either this property
48
+ * @param elementId - Uuid of the element to click. Either this property
51
49
  * or/and x and y must be set. If both are set then x and y are
52
50
  * considered as relative element coordinates. If only x and y
53
51
  * are set then these are parsed as absolute coordinates.
54
- * @param {number} [x] Click X coordinate
55
- * @param {number} [y] Click Y coordinate
56
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
52
+ * @param x - Click X coordinate
53
+ * @param y - Click Y coordinate
54
+ * @param keyModifierFlags - If set then the given key modifiers will be
57
55
  * applied while click is performed. See
58
56
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
59
57
  * for more details
@@ -62,24 +60,23 @@ async function macosClick(elementId, x, y, keyModifierFlags) {
62
60
  requireElementIdOrXY(elementId, x, y);
63
61
  const url = elementId ? `/element/${elementId}/click` : '/wda/click';
64
62
  return await this.wda.proxy.command(url, 'POST', {
65
- x, y,
63
+ x,
64
+ y,
66
65
  keyModifierFlags,
67
66
  });
68
67
  }
69
- ;
70
68
  /**
71
69
  * Perform scroll gesture on an element or by relative/absolute coordinates
72
70
  *
73
- * @this {Mac2Driver}
74
- * @param {number} deltaX Horizontal delta as float number
75
- * @param {number} deltaY Vertical delta as float number
76
- * @param {string} [elementId] Uuid of the element to be scrolled. Either this property
71
+ * @param deltaX - Horizontal delta as float number
72
+ * @param deltaY - Vertical delta as float number
73
+ * @param elementId - Uuid of the element to be scrolled. Either this property
77
74
  * or/and x and y must be set. If both are set then x and y are
78
75
  * considered as relative element coordinates. If only x and y are
79
76
  * set then these are parsed as absolute coordinates.
80
- * @param {number} [x] Scroll X coordinate
81
- * @param {number} [y] Scroll Y coordinate
82
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
77
+ * @param x - Scroll X coordinate
78
+ * @param y - Scroll Y coordinate
79
+ * @param keyModifierFlags - If set then the given key modifiers will be
83
80
  * applied while scroll is performed. See
84
81
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
85
82
  * for more details
@@ -88,29 +85,29 @@ async function macosScroll(deltaX, deltaY, elementId, x, y, keyModifierFlags) {
88
85
  requireElementIdOrXY(elementId, x, y);
89
86
  const url = elementId ? `/wda/element/${elementId}/scroll` : '/wda/scroll';
90
87
  return await this.wda.proxy.command(url, 'POST', {
91
- deltaX, deltaY,
92
- x, y,
88
+ deltaX,
89
+ deltaY,
90
+ x,
91
+ y,
93
92
  keyModifierFlags,
94
93
  });
95
94
  }
96
- ;
97
95
  /**
98
96
  * Perform swipe gesture on an element
99
97
  *
100
- * @this {Mac2Driver}
101
- * @param {'up'|'down'|'left'|'right'} direction Swipe direction
102
- * @param {string} [elementId] Uuid of the element to be swiped. Either this property
98
+ * @param direction - Swipe direction
99
+ * @param elementId - Uuid of the element to be swiped. Either this property
103
100
  * or/and x and y must be set. If both are set then x and y are
104
101
  * considered as relative element coordinates. If only x and y are
105
102
  * set then these are parsed as absolute coordinates.
106
- * @param {number} [x] Swipe X coordinate
107
- * @param {number} [y] Swipe Y coordinate
108
- * @param {number} [velocity] The value is measured in pixels per second and same
103
+ * @param x - Swipe X coordinate
104
+ * @param y - Swipe Y coordinate
105
+ * @param velocity - The value is measured in pixels per second and same
109
106
  * values could behave differently on different devices depending
110
107
  * on their display density. Higher values make swipe gesture faster
111
108
  * (which usually scrolls larger areas if we apply it to a list)
112
109
  * and lower values slow it down. Only values greater than zero have effect.
113
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
110
+ * @param keyModifierFlags - If set then the given key modifiers will be
114
111
  * applied while scroll is performed. See
115
112
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
116
113
  * for more details
@@ -119,24 +116,23 @@ async function macosSwipe(direction, elementId, x, y, velocity, keyModifierFlags
119
116
  requireElementIdOrXY(elementId, x, y);
120
117
  const url = elementId ? `/wda/element/${elementId}/swipe` : `/wda/swipe`;
121
118
  return await this.wda.proxy.command(url, 'POST', {
122
- x, y,
119
+ x,
120
+ y,
123
121
  direction,
124
122
  velocity,
125
123
  keyModifierFlags,
126
124
  });
127
125
  }
128
- ;
129
126
  /**
130
127
  * Perform right click gesture on an element or by relative/absolute coordinates
131
128
  *
132
- * @this {Mac2Driver}
133
- * @param {string} [elementId] Uuid of the element to click. Either this property
129
+ * @param elementId - Uuid of the element to click. Either this property
134
130
  * or/and x and y must be set. If both are set then x and y are
135
131
  * considered as relative element coordinates. If only x and y
136
132
  * are set then these are parsed as absolute coordinates.
137
- * @param {number} [x] Click X coordinate
138
- * @param {number} [y] Click Y coordinate
139
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
133
+ * @param x - Click X coordinate
134
+ * @param y - Click Y coordinate
135
+ * @param keyModifierFlags - If set then the given key modifiers will be
140
136
  * applied while click is performed. See
141
137
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
142
138
  * for more details
@@ -145,22 +141,21 @@ async function macosRightClick(elementId, x, y, keyModifierFlags) {
145
141
  requireElementIdOrXY(elementId, x, y);
146
142
  const url = elementId ? `/wda/element/${elementId}/rightClick` : '/wda/rightClick';
147
143
  return await this.wda.proxy.command(url, 'POST', {
148
- x, y,
144
+ x,
145
+ y,
149
146
  keyModifierFlags,
150
147
  });
151
148
  }
152
- ;
153
149
  /**
154
150
  * Perform hover gesture on an element or by relative/absolute coordinates
155
151
  *
156
- * @this {Mac2Driver}
157
- * @param {string} [elementId] Uuid of the element to hover. Either this property
152
+ * @param elementId - Uuid of the element to hover. Either this property
158
153
  * or/and x and y must be set. If both are set then x and y are
159
154
  * considered as relative element coordinates. If only x and y
160
155
  * are set then these are parsed as absolute coordinates.
161
- * @param {number} [x] Click X coordinate
162
- * @param {number} [y] Click Y coordinate
163
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
156
+ * @param x - Click X coordinate
157
+ * @param y - Click Y coordinate
158
+ * @param keyModifierFlags - If set then the given key modifiers will be
164
159
  * applied while click is performed. See
165
160
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
166
161
  * for more details
@@ -169,22 +164,21 @@ async function macosHover(elementId, x, y, keyModifierFlags) {
169
164
  requireElementIdOrXY(elementId, x, y);
170
165
  const url = elementId ? `/wda/element/${elementId}/hover` : '/wda/hover';
171
166
  return await this.wda.proxy.command(url, 'POST', {
172
- x, y,
167
+ x,
168
+ y,
173
169
  keyModifierFlags,
174
170
  });
175
171
  }
176
- ;
177
172
  /**
178
173
  * Perform double click gesture on an element or by relative/absolute coordinates
179
174
  *
180
- * @this {Mac2Driver}
181
- * @param {string} [elementId] Uuid of the element to hover. Either this property
175
+ * @param elementId - Uuid of the element to hover. Either this property
182
176
  * or/and x and y must be set. If both are set then x and y are
183
177
  * considered as relative element coordinates. If only x and y
184
178
  * are set then these are parsed as absolute coordinates.
185
- * @param {number} [x] Click X coordinate
186
- * @param {number} [y] Click Y coordinate
187
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
179
+ * @param x - Click X coordinate
180
+ * @param y - Click Y coordinate
181
+ * @param keyModifierFlags - If set then the given key modifiers will be
188
182
  * applied while click is performed. See
189
183
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
190
184
  * for more details
@@ -193,27 +187,26 @@ async function macosDoubleClick(elementId, x, y, keyModifierFlags) {
193
187
  requireElementIdOrXY(elementId, x, y);
194
188
  const url = elementId ? `/wda/element/${elementId}/doubleClick` : '/wda/doubleClick';
195
189
  return await this.wda.proxy.command(url, 'POST', {
196
- x, y,
190
+ x,
191
+ y,
197
192
  keyModifierFlags,
198
193
  });
199
194
  }
200
- ;
201
195
  /**
202
196
  * Perform long click and drag gesture on an element or by absolute coordinates
203
197
  *
204
- * @this {Mac2Driver}
205
- * @param {number} duration Long click duration in float seconds
206
- * @param {string} [sourceElementId] Uuid of the element to start the drag from.
198
+ * @param duration - Long click duration in float seconds
199
+ * @param sourceElementId - Uuid of the element to start the drag from.
207
200
  * Either this property and `destinationElement` must be provided
208
201
  * or `startX`, `startY`, `endX`, `endY` coordinates must be set.
209
- * @param {string} [destinationElementId] Uuid of the element to end the drag on.
202
+ * @param destinationElementId - Uuid of the element to end the drag on.
210
203
  * Either this property and `sourceElement` must be provided or
211
204
  * `startX`, `startY`, `endX`, `endY` coordinatesmust be set.
212
- * @param {number} [startX] Starting X coordinate
213
- * @param {number} [startY] Starting Y coordinate
214
- * @param {number} [endX] Ending X coordinate
215
- * @param {number} [endY] Ending Y coordinate
216
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
205
+ * @param startX - Starting X coordinate
206
+ * @param startY - Starting Y coordinate
207
+ * @param endX - Ending X coordinate
208
+ * @param endY - Ending Y coordinate
209
+ * @param keyModifierFlags - If set then the given key modifiers will be
217
210
  * applied while drag is performed. See
218
211
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
219
212
  * for more details
@@ -225,38 +218,39 @@ async function macosClickAndDrag(duration, sourceElementId, destinationElementId
225
218
  : '/wda/clickAndDrag';
226
219
  const dest = destinationElementId && support_1.util.wrapElement(destinationElementId);
227
220
  return await this.wda.proxy.command(url, 'POST', {
228
- startX, startY,
229
- endX, endY,
221
+ startX,
222
+ startY,
223
+ endX,
224
+ endY,
230
225
  duration,
231
226
  dest,
232
227
  keyModifierFlags,
233
228
  });
234
229
  }
235
- ;
236
230
  /**
237
231
  * Perform long click, drag and hold gesture on an element or by absolute coordinates
238
232
  *
239
- * @this {Mac2Driver}
240
- * @param {number} duration Long click duration in float seconds
241
- * @param {number} holdDuration Touch hold duration in float seconds
242
- * @param {string} [sourceElementId] Uuid of the element to start the drag from.
233
+ * @param duration - Long click duration in float seconds
234
+ * @param holdDuration - Touch hold duration in float seconds
235
+ * @param sourceElementId - Uuid of the element to start the drag from.
243
236
  * Either this property and `destinationElement` must be provided
244
237
  * or `startX`, `startY`, `endX`, `endY` coordinates must be set.
245
- * @param {string} [destinationElementId] Uuid of the element to end the drag on.
238
+ * @param destinationElementId - Uuid of the element to end the drag on.
246
239
  * Either this property and `sourceElement` must be provided
247
240
  * or `startX`, `startY`, `endX`, `endY` coordinates must be set.
248
- * @param {number} [startX] Starting X coordinate
249
- * @param {number} [startY] Starting Y coordinate
250
- * @param {number} [endX] Ending X coordinate
251
- * @param {number} [endY] Ending Y coordinate
252
- * @param {number} [velocity] Dragging velocity in pixels per second.
241
+ * @param startX - Starting X coordinate
242
+ * @param startY - Starting Y coordinate
243
+ * @param endX - Ending X coordinate
244
+ * @param endY - Ending Y coordinate
245
+ * @param velocity - Dragging velocity in pixels per second.
253
246
  * If not provided then the default velocity is used. See
254
247
  * https://developer.apple.com/documentation/xctest/xcuigesturevelocity
255
248
  * for more details
256
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
249
+ * @param keyModifierFlags - If set then the given key modifiers will be
257
250
  * applied while drag is performed. See
258
251
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
259
- * for more details */
252
+ * for more details
253
+ */
260
254
  async function macosClickAndDragAndHold(duration, holdDuration, sourceElementId, destinationElementId, startX, startY, endX, endY, velocity, keyModifierFlags) {
261
255
  requireSourceDestWithElementsOrCoordinates(sourceElementId, destinationElementId, startX, startY, endX, endY);
262
256
  const url = sourceElementId && destinationElementId
@@ -264,25 +258,26 @@ async function macosClickAndDragAndHold(duration, holdDuration, sourceElementId,
264
258
  : '/wda/clickAndDragAndHold';
265
259
  const dest = destinationElementId && support_1.util.wrapElement(destinationElementId);
266
260
  return await this.wda.proxy.command(url, 'POST', {
267
- startX, startY,
268
- endX, endY,
269
- duration, holdDuration,
261
+ startX,
262
+ startY,
263
+ endX,
264
+ endY,
265
+ duration,
266
+ holdDuration,
270
267
  velocity,
271
268
  dest,
272
269
  keyModifierFlags,
273
270
  });
274
271
  }
275
- ;
276
272
  /**
277
273
  * Send keys to the given element or to the application under test
278
274
  *
279
- * @this {Mac2Driver}
280
- * @param {(import('../types').KeyOptions | string)[]} keys Array of keys to type.
275
+ * @param keys - Array of keys to type.
281
276
  * Each item could either be a string, that represents a key itself (see
282
277
  * https://developer.apple.com/documentation/xctest/xcuielement/1500604-typekey
283
278
  * and https://developer.apple.com/documentation/xctest/xcuikeyboardkey)
284
279
  * or a dictionary, if the key should also be entered with modifiers.
285
- * @param {string} [elementId] Uuid of the element to send the keys to.
280
+ * @param elementId - Uuid of the element to send the keys to.
286
281
  * If unset then keys are sent to the current application
287
282
  * under test.
288
283
  */
@@ -290,18 +285,16 @@ async function macosKeys(keys, elementId) {
290
285
  const url = elementId ? `/wda/element/${elementId}/keys` : '/wda/keys';
291
286
  return await this.wda.proxy.command(url, 'POST', { keys });
292
287
  }
293
- ;
294
288
  /**
295
289
  * Perform tap gesture on a Touch Bar element or by relative/absolute coordinates
296
290
  *
297
- * @this {Mac2Driver}
298
- * @param {string} [elementId] Uuid of the Touch Bar element to tap. Either this property
291
+ * @param elementId - Uuid of the Touch Bar element to tap. Either this property
299
292
  * or/and x and y must be set. If both are set then x and y are considered
300
293
  * as relative element coordinates. If only x and y are set then
301
294
  * these are parsed as absolute Touch Bar coordinates.
302
- * @param {number} [x] Tap X coordinate
303
- * @param {number} [y] Tap Y coordinate
304
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
295
+ * @param x - Tap X coordinate
296
+ * @param y - Tap Y coordinate
297
+ * @param keyModifierFlags - If set then the given key modifiers will be
305
298
  * applied while click is performed. See
306
299
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
307
300
  * for more details
@@ -310,22 +303,21 @@ async function macosTap(elementId, x, y, keyModifierFlags) {
310
303
  requireElementIdOrXY(elementId, x, y);
311
304
  const url = elementId ? `/wda/element/${elementId}/tap` : '/wda/tap';
312
305
  return await this.wda.proxy.command(url, 'POST', {
313
- x, y,
306
+ x,
307
+ y,
314
308
  keyModifierFlags,
315
309
  });
316
310
  }
317
- ;
318
311
  /**
319
312
  * Perform tap gesture on a Touch Bar element or by relative/absolute coordinates
320
313
  *
321
- * @this {Mac2Driver}
322
- * @param {string} [elementId] Uuid of the Touch Bar element to tap. Either this property
323
- * or/and x and y must be set. If both are set then x and y are considered
324
- * as relative element coordinates. If only x and y are set then
325
- * these are parsed as absolute Touch Bar coordinates.
326
- * @param {number} [x] Tap X coordinate
327
- * @param {number} [y] Tap Y coordinate
328
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
314
+ * @param elementId - Uuid of the Touch Bar element to tap. Either this property
315
+ * or/and x and y must be set. If both are set then x and y are considered
316
+ * as relative element coordinates. If only x and y are set then
317
+ * these are parsed as absolute Touch Bar coordinates.
318
+ * @param x - Tap X coordinate
319
+ * @param y - Tap Y coordinate
320
+ * @param keyModifierFlags - If set then the given key modifiers will be
329
321
  * applied while click is performed. See
330
322
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
331
323
  * for more details
@@ -334,23 +326,22 @@ async function macosDoubleTap(elementId, x, y, keyModifierFlags) {
334
326
  requireElementIdOrXY(elementId, x, y);
335
327
  const url = elementId ? `/wda/element/${elementId}/doubleTap` : '/wda/doubleTap';
336
328
  return await this.wda.proxy.command(url, 'POST', {
337
- x, y,
329
+ x,
330
+ y,
338
331
  keyModifierFlags,
339
332
  });
340
333
  }
341
- ;
342
334
  /**
343
335
  * Perform press gesture on a Touch Bar element or by relative/absolute coordinates
344
336
  *
345
- * @this {Mac2Driver}
346
- * @param {number} duration The number of float seconds to hold the mouse button
347
- * @param {string} [elementId] Uuid of the Touch Bar element to be pressed. Either this property
337
+ * @param duration - The number of float seconds to hold the mouse button
338
+ * @param elementId - Uuid of the Touch Bar element to be pressed. Either this property
348
339
  * or/and x and y must be set. If both are set then x and y are considered
349
340
  * as relative element coordinates. If only x and y are set then these are
350
341
  * parsed as absolute Touch Bar coordinates.
351
- * @param {number} [x] Press X coordinate
352
- * @param {number} [y] Press Y coordinate
353
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
342
+ * @param x - Press X coordinate
343
+ * @param y - Press Y coordinate
344
+ * @param keyModifierFlags - If set then the given key modifiers will be
354
345
  * applied while click is performed. See
355
346
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
356
347
  * for more details
@@ -358,28 +349,27 @@ async function macosDoubleTap(elementId, x, y, keyModifierFlags) {
358
349
  async function macosPressAndHold(duration, elementId, x, y, keyModifierFlags) {
359
350
  const url = elementId ? `/wda/element/${elementId}/press` : '/wda/press';
360
351
  return await this.wda.proxy.command(url, 'POST', {
361
- x, y,
352
+ x,
353
+ y,
362
354
  duration,
363
355
  keyModifierFlags,
364
356
  });
365
357
  }
366
- ;
367
358
  /**
368
359
  * Perform long press and drag gesture on a Touch Bar element or by absolute coordinates
369
360
  *
370
- * @this {Mac2Driver}
371
- * @param {number} duration Long press duration in float seconds
372
- * @param {string} [sourceElementId] Uuid of a Touch Bar element to start the drag from.
361
+ * @param duration - Long press duration in float seconds
362
+ * @param sourceElementId - Uuid of a Touch Bar element to start the drag from.
373
363
  * Either this property and `destinationElement` must be provided or
374
364
  * `startX`, `startY`, `endX`, `endY` coordinates must be set.
375
- * @param {string} [destinationElementId] Uuid of a Touch Bar element to end the drag on.
365
+ * @param destinationElementId - Uuid of a Touch Bar element to end the drag on.
376
366
  * Either this property and `sourceElement` must be provided or
377
367
  * `startX`, `startY`, `endX`, `endY` coordinates must be set.
378
- * @param {number} [startX] Starting X coordinate
379
- * @param {number} [startY] Starting Y coordinate
380
- * @param {number} [endX] Ending X coordinate
381
- * @param {number} [endY] Ending Y coordinate
382
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
368
+ * @param startX - Starting X coordinate
369
+ * @param startY - Starting Y coordinate
370
+ * @param endX - Ending X coordinate
371
+ * @param endY - Ending Y coordinate
372
+ * @param keyModifierFlags - If set then the given key modifiers will be
383
373
  * applied while drag is performed. See
384
374
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
385
375
  * for more details
@@ -394,35 +384,35 @@ async function macosPressAndDrag(duration, sourceElementId, destinationElementId
394
384
  : '/wda/pressAndDrag';
395
385
  const dest = destinationElementId && support_1.util.wrapElement(destinationElementId);
396
386
  return await this.wda.proxy.command(url, 'POST', {
397
- startX, startY,
398
- endX, endY,
387
+ startX,
388
+ startY,
389
+ endX,
390
+ endY,
399
391
  duration,
400
392
  dest,
401
393
  keyModifierFlags,
402
394
  });
403
395
  }
404
- ;
405
396
  /**
406
397
  * Perform press, drag and hold gesture on a Touch Bar element or by absolute Touch Bar coordinates
407
398
  *
408
- * @this {Mac2Driver}
409
- * @param {number} duration Long press duration in float seconds
410
- * @param {number} holdDuration Touch hold duration in float seconds
411
- * @param {string} [sourceElementId] Uuid of a Touch Bar element to start the drag from.
399
+ * @param duration - Long press duration in float seconds
400
+ * @param holdDuration - Touch hold duration in float seconds
401
+ * @param sourceElementId - Uuid of a Touch Bar element to start the drag from.
412
402
  * Either this property and `destinationElement` must be provided or
413
403
  * `startX`, `startY`, `endX`, `endY` coordinates must be set.
414
- * @param {string} [destinationElementId] Uuid of a Touch Bar element to end the drag on.
404
+ * @param destinationElementId - Uuid of a Touch Bar element to end the drag on.
415
405
  * Either this property and `sourceElement` must be provided or
416
406
  * `startX`, `startY`, `endX`, `endY` coordinates must be set.
417
- * @param {number} [startX] Starting X coordinate
418
- * @param {number} [startY] Starting Y coordinate
419
- * @param {number} [endX] Ending X coordinate
420
- * @param {number} [endY] Ending Y coordinate
421
- * @param {number} [velocity] Dragging velocity in pixels per second.
407
+ * @param startX - Starting X coordinate
408
+ * @param startY - Starting Y coordinate
409
+ * @param endX - Ending X coordinate
410
+ * @param endY - Ending Y coordinate
411
+ * @param velocity - Dragging velocity in pixels per second.
422
412
  * If not provided then the default velocity is used. See
423
413
  * https://developer.apple.com/documentation/xctest/xcuigesturevelocity
424
414
  * for more details
425
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
415
+ * @param keyModifierFlags - If set then the given key modifiers will be
426
416
  * applied while drag is performed. See
427
417
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
428
418
  * for more details
@@ -434,21 +424,22 @@ async function macosPressAndDragAndHold(duration, holdDuration, sourceElementId,
434
424
  : '/wda/pressAndDragAndHold';
435
425
  const dest = destinationElementId && support_1.util.wrapElement(destinationElementId);
436
426
  return await this.wda.proxy.command(url, 'POST', {
437
- startX, startY,
438
- endX, endY,
439
- duration, holdDuration,
427
+ startX,
428
+ startY,
429
+ endX,
430
+ endY,
431
+ duration,
432
+ holdDuration,
440
433
  velocity,
441
434
  dest,
442
435
  keyModifierFlags,
443
436
  });
444
437
  }
445
- ;
446
438
  /**
447
439
  * Raise invalid argument error if element id was unset or x and y were unset.
448
- * @param {string} [elementId]
449
- * @param {number} [x]
450
- * @param {number} [y]
451
- * @returns {void}
440
+ * @param elementId - Optional element ID
441
+ * @param x - Optional X coordinate
442
+ * @param y - Optional Y coordinate
452
443
  */
453
444
  function requireElementIdOrXY(elementId, x, y) {
454
445
  if (!lodash_1.default.isString(elementId) && !(lodash_1.default.isNumber(x) && lodash_1.default.isNumber(y))) {
@@ -458,22 +449,18 @@ function requireElementIdOrXY(elementId, x, y) {
458
449
  /**
459
450
  * Raise invalid argument error if sourceElementId and destinationElementId were unset
460
451
  * or startX, startY, endX and endY were unset.
461
- * @param {string} [sourceElementId]
462
- * @param {string} [destinationElementId]
463
- * @param {number} [startX]
464
- * @param {number} [startY]
465
- * @param {number} [endX]
466
- * @param {number} [endY]
467
- * @returns {void}
452
+ * @param sourceElementId - Optional source element ID
453
+ * @param destinationElementId - Optional destination element ID
454
+ * @param startX - Optional starting X coordinate
455
+ * @param startY - Optional starting Y coordinate
456
+ * @param endX - Optional ending X coordinate
457
+ * @param endY - Optional ending Y coordinate
468
458
  */
469
459
  function requireSourceDestWithElementsOrCoordinates(sourceElementId, destinationElementId, startX, startY, endX, endY) {
470
- if (!(lodash_1.default.isString(sourceElementId) && lodash_1.default.isString(destinationElementId))
471
- && !(lodash_1.default.isNumber(startX) && lodash_1.default.isNumber(startY) && lodash_1.default.isNumber(endX) && lodash_1.default.isNumber(endY))) {
460
+ if (!(lodash_1.default.isString(sourceElementId) && lodash_1.default.isString(destinationElementId)) &&
461
+ !(lodash_1.default.isNumber(startX) && lodash_1.default.isNumber(startY) && lodash_1.default.isNumber(endX) && lodash_1.default.isNumber(endY))) {
472
462
  throw new driver_1.errors.InvalidArgumentError(`'sourceElementId' and 'destinationElementId' ` +
473
463
  `or 'startX', 'startY', 'endX' and 'endY' are required.`);
474
464
  }
475
465
  }
476
- /**
477
- * @typedef {import('../driver').Mac2Driver} Mac2Driver
478
- */
479
466
  //# sourceMappingURL=gestures.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gestures.js","sourceRoot":"","sources":["../../../lib/commands/gestures.js"],"names":[],"mappings":";;;;;AAmBA,sCAKC;AAkBD,gCAOC;AAmBD,kCAaC;AAuBD,gCAeC;AAiBD,0CAOC;AAiBD,gCAOC;AAiBD,4CAOC;AAsBD,8CAuBC;AA0BD,4DA0BC;AAeD,8BAGC;AAiBD,4BAOC;AAiBD,wCAOC;AAkBD,8CAOC;AAsBD,8CAuBC;AA2BD,4DA0BC;AA7dD,oDAAuB;AACvB,4CAAsC;AACtC,0CAAuC;AAEvC;;;;;;;;;;;;;;GAcG;AACI,KAAK,UAAU,aAAa,CAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,gBAAgB;IAC3E,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,SAAS,QAAQ,EAAE,MAAM,EAAE;QACzE,KAAK,EAAE,IAAI;QACX,gBAAgB;KACjB,CAAC,CAAC;AACL,CAAC;AAAA,CAAC;AAGF;;;;;;;;;;;;;;GAcG;AACI,KAAK,UAAU,UAAU,CAAE,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,gBAAgB;IACjE,oBAAoB,CAAC,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACtC,MAAM,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,YAAY,SAAS,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC;IACrE,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE;QAC/C,CAAC,EAAE,CAAC;QACJ,gBAAgB;KACjB,CAAC,CAAC;AACL,CAAC;AAAA,CAAC;AAE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AAC,CAAC;IAC5E,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE;QAC/C,MAAM;QACN,MAAM;QACN,IAAI;QACJ,IAAI;QACJ,QAAQ;QACR,YAAY;QACZ,QAAQ;QACR,IAAI;QACJ,gBAAgB;KACjB,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,SAAS,oBAAoB,CAAC,SAAkB,EAAE,CAAU,EAAE,CAAU;IACtE,IAAI,CAAC,gBAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,gBAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,gBAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAChE,MAAM,IAAI,eAAM,CAAC,oBAAoB,CAAC,yCAAyC,CAAC,CAAC;IACnF,CAAC;AACH,CAAC;AAED;;;;;;;;;GASG;AACH,SAAS,0CAA0C,CACjD,eAAwB,EACxB,oBAA6B,EAC7B,MAAe,EACf,MAAe,EACf,IAAa,EACb,IAAa;IAEb,IACE,CAAC,CAAC,gBAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,gBAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;QAClE,CAAC,CAAC,gBAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,gBAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,gBAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,gBAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EACnF,CAAC;QACD,MAAM,IAAI,eAAM,CAAC,oBAAoB,CACnC,+CAA+C;YAC7C,wDAAwD,CAC3D,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1,14 +1,12 @@
1
+ import type { Mac2Driver } from '../driver';
1
2
  /**
2
3
  * Opens the given URL with the default or the given application.
3
4
  * Xcode must be at version 14.3+.
4
5
  *
5
- * @this {Mac2Driver}
6
- * @param {string} url The URL to be opened.
7
- * @param {string} [bundleId] The bundle identifier of an application to open
6
+ * @param url - The URL to be opened.
7
+ * @param bundleId - The bundle identifier of an application to open
8
8
  * the given url with. If not provided then the default application
9
9
  * for the given url scheme is going to be used.
10
- * @returns {Promise<unknown>}
11
10
  */
12
- export function macosDeepLink(this: import("../driver").Mac2Driver, url: string, bundleId?: string): Promise<unknown>;
13
- export type Mac2Driver = import("../driver").Mac2Driver;
11
+ export declare function macosDeepLink(this: Mac2Driver, url: string, bundleId?: string): Promise<unknown>;
14
12
  //# sourceMappingURL=navigation.d.ts.map