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.
- package/CHANGELOG.md +11 -0
- package/build/lib/commands/app-management.d.ts +18 -21
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +14 -25
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/applescript.d.ts +8 -9
- package/build/lib/commands/applescript.d.ts.map +1 -1
- package/build/lib/commands/applescript.js +14 -13
- package/build/lib/commands/applescript.js.map +1 -1
- package/build/lib/commands/execute.d.ts +5 -8
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +5 -13
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/find.d.ts +6 -8
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +8 -13
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/gestures.d.ts +105 -118
- package/build/lib/commands/gestures.d.ts.map +1 -1
- package/build/lib/commands/gestures.js +141 -154
- package/build/lib/commands/gestures.js.map +1 -1
- package/build/lib/commands/navigation.d.ts +4 -6
- package/build/lib/commands/navigation.d.ts.map +1 -1
- package/build/lib/commands/navigation.js +2 -8
- package/build/lib/commands/navigation.js.map +1 -1
- package/build/lib/commands/record-screen.d.ts +57 -98
- package/build/lib/commands/record-screen.d.ts.map +1 -1
- package/build/lib/commands/record-screen.js +81 -84
- package/build/lib/commands/record-screen.js.map +1 -1
- package/build/lib/commands/screenshots.d.ts +5 -5
- package/build/lib/commands/screenshots.d.ts.map +1 -1
- package/build/lib/commands/screenshots.js +3 -8
- package/build/lib/commands/screenshots.js.map +1 -1
- package/build/lib/commands/source.d.ts +4 -5
- package/build/lib/commands/source.d.ts.map +1 -1
- package/build/lib/commands/source.js +3 -8
- package/build/lib/commands/source.js.map +1 -1
- package/lib/commands/app-management.ts +88 -0
- package/lib/commands/{applescript.js → applescript.ts} +28 -24
- package/lib/commands/execute.ts +32 -0
- package/lib/commands/find.ts +34 -0
- package/lib/commands/{gestures.js → gestures.ts} +333 -238
- package/lib/commands/navigation.ts +19 -0
- package/lib/commands/{record-screen.js → record-screen.ts} +165 -138
- package/lib/commands/screenshots.ts +18 -0
- package/lib/commands/{source.js → source.ts} +10 -11
- package/npm-shrinkwrap.json +128 -171
- package/package.json +2 -2
- package/lib/commands/app-management.js +0 -83
- package/lib/commands/execute.js +0 -33
- package/lib/commands/find.js +0 -31
- package/lib/commands/navigation.js +0 -18
- 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
|
-
* @
|
|
31
|
-
* @param
|
|
32
|
-
* @param
|
|
33
|
-
* @param
|
|
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,
|
|
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
|
|
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
|
|
55
|
-
* @param
|
|
56
|
-
* @param
|
|
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,
|
|
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
|
-
* @
|
|
74
|
-
* @param
|
|
75
|
-
* @param
|
|
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
|
|
81
|
-
* @param
|
|
82
|
-
* @param
|
|
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,
|
|
92
|
-
|
|
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
|
-
* @
|
|
101
|
-
* @param
|
|
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
|
|
107
|
-
* @param
|
|
108
|
-
* @param
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
138
|
-
* @param
|
|
139
|
-
* @param
|
|
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,
|
|
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
|
|
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
|
|
162
|
-
* @param
|
|
163
|
-
* @param
|
|
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,
|
|
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
|
|
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
|
|
186
|
-
* @param
|
|
187
|
-
* @param
|
|
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,
|
|
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
|
-
* @
|
|
205
|
-
* @param
|
|
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
|
|
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
|
|
213
|
-
* @param
|
|
214
|
-
* @param
|
|
215
|
-
* @param
|
|
216
|
-
* @param
|
|
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,
|
|
229
|
-
|
|
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
|
-
* @
|
|
240
|
-
* @param
|
|
241
|
-
* @param
|
|
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
|
|
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
|
|
249
|
-
* @param
|
|
250
|
-
* @param
|
|
251
|
-
* @param
|
|
252
|
-
* @param
|
|
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
|
|
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,
|
|
268
|
-
|
|
269
|
-
|
|
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
|
-
* @
|
|
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
|
|
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
|
|
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
|
|
303
|
-
* @param
|
|
304
|
-
* @param
|
|
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,
|
|
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
|
|
322
|
-
*
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
* @param
|
|
327
|
-
* @param
|
|
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,
|
|
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
|
-
* @
|
|
346
|
-
* @param
|
|
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
|
|
352
|
-
* @param
|
|
353
|
-
* @param
|
|
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,
|
|
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
|
-
* @
|
|
371
|
-
* @param
|
|
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
|
|
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
|
|
379
|
-
* @param
|
|
380
|
-
* @param
|
|
381
|
-
* @param
|
|
382
|
-
* @param
|
|
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,
|
|
398
|
-
|
|
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
|
-
* @
|
|
409
|
-
* @param
|
|
410
|
-
* @param
|
|
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
|
|
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
|
|
418
|
-
* @param
|
|
419
|
-
* @param
|
|
420
|
-
* @param
|
|
421
|
-
* @param
|
|
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
|
|
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,
|
|
438
|
-
|
|
439
|
-
|
|
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
|
|
449
|
-
* @param
|
|
450
|
-
* @param
|
|
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
|
|
462
|
-
* @param
|
|
463
|
-
* @param
|
|
464
|
-
* @param
|
|
465
|
-
* @param
|
|
466
|
-
* @param
|
|
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
|
-
|
|
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.
|
|
1
|
+
{"version":3,"file":"gestures.js","sourceRoot":"","sources":["../../../lib/commands/gestures.ts"],"names":[],"mappings":";;;;;AAoBA,sCAYC;AAgBD,gCAcC;AAkBD,kCAkBC;AAsBD,gCAkBC;AAgBD,0CAcC;AAgBD,gCAcC;AAgBD,4CAcC;AAqBD,8CAiCC;AA0BD,4DAqCC;AAcD,8BAOC;AAgBD,4BAcC;AAgBD,wCAcC;AAiBD,8CAeC;AAqBD,8CA6BC;AA0BD,4DAqCC;AA3jBD,oDAAuB;AACvB,4CAAsC;AACtC,0CAAuC;AAIvC;;;;;;;;;;;;;GAaG;AACI,KAAK,UAAU,aAAa,CAEjC,SAAiB,EACjB,KAAW,EACX,IAAa,EACb,gB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ACH,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
|
-
* @
|
|
6
|
-
* @param
|
|
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:
|
|
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
|