appium-mac2-driver 3.2.2 → 3.2.4
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 +15 -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/build/lib/doctor/optional-checks.d.ts +12 -10
- package/build/lib/doctor/optional-checks.d.ts.map +1 -1
- package/build/lib/doctor/optional-checks.js +9 -9
- package/build/lib/doctor/optional-checks.js.map +1 -1
- package/build/lib/doctor/required-checks.d.ts +12 -10
- package/build/lib/doctor/required-checks.d.ts.map +1 -1
- package/build/lib/doctor/required-checks.js +9 -9
- package/build/lib/doctor/required-checks.js.map +1 -1
- package/build/lib/doctor/utils.d.ts +3 -3
- package/build/lib/doctor/utils.d.ts.map +1 -1
- package/build/lib/doctor/utils.js +2 -2
- package/build/lib/doctor/utils.js.map +1 -1
- package/build/lib/logger.d.ts +1 -1
- package/build/lib/logger.d.ts.map +1 -1
- package/build/lib/logger.js.map +1 -1
- package/build/lib/utils.d.ts +11 -11
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +6 -7
- package/build/lib/utils.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/lib/doctor/optional-checks.ts +67 -0
- package/lib/doctor/required-checks.ts +75 -0
- package/lib/doctor/{utils.js → utils.ts} +4 -3
- package/lib/{logger.js → logger.ts} +1 -0
- package/lib/{utils.js → utils.ts} +8 -10
- package/npm-shrinkwrap.json +13 -13
- package/package.json +1 -1
- 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
- package/lib/doctor/optional-checks.js +0 -64
- package/lib/doctor/required-checks.js +0 -72
|
@@ -1,278 +1,265 @@
|
|
|
1
|
+
import type { Mac2Driver } from '../driver';
|
|
2
|
+
import type { KeyOptions } from '../types';
|
|
1
3
|
/**
|
|
2
4
|
* Set value to the given element.
|
|
3
5
|
* Note:
|
|
4
6
|
* This is not exposed as 'macos: setValue' because this is the same as
|
|
5
7
|
* element.send_keys in W3C WebDriver spec.
|
|
6
8
|
*
|
|
7
|
-
* @
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
11
|
-
* @param {number} [keyModifierFlags] If set then the given key modifiers will
|
|
9
|
+
* @param elementId - Uuid of the element to set value for.
|
|
10
|
+
* @param value - Value to set. Could also be an array.
|
|
11
|
+
* @param text - Text to set. If both value and text are set then `value` is preferred
|
|
12
|
+
* @param keyModifierFlags - If set then the given key modifiers will
|
|
12
13
|
* be applied while the element value is being set. See
|
|
13
14
|
* https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
|
|
14
15
|
* for more details.
|
|
15
16
|
*/
|
|
16
|
-
export function macosSetValue(this:
|
|
17
|
+
export declare function macosSetValue(this: Mac2Driver, elementId: string, value?: any, text?: string, keyModifierFlags?: number): Promise<unknown>;
|
|
17
18
|
/**
|
|
18
19
|
* Perform click gesture on an element or by relative/absolute coordinates
|
|
19
20
|
*
|
|
20
|
-
* @this
|
|
21
|
-
* @param {string} [elementId] Uuid of the element to click. Either this property
|
|
21
|
+
* @param elementId - Uuid of the element to click. Either this property
|
|
22
22
|
* or/and x and y must be set. If both are set then x and y are
|
|
23
23
|
* considered as relative element coordinates. If only x and y
|
|
24
24
|
* are set then these are parsed as absolute coordinates.
|
|
25
|
-
* @param
|
|
26
|
-
* @param
|
|
27
|
-
* @param
|
|
25
|
+
* @param x - Click X coordinate
|
|
26
|
+
* @param y - Click Y coordinate
|
|
27
|
+
* @param keyModifierFlags - If set then the given key modifiers will be
|
|
28
28
|
* applied while click is performed. See
|
|
29
29
|
* https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
|
|
30
30
|
* for more details
|
|
31
31
|
*/
|
|
32
|
-
export function macosClick(this:
|
|
32
|
+
export declare function macosClick(this: Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
|
|
33
33
|
/**
|
|
34
34
|
* Perform scroll gesture on an element or by relative/absolute coordinates
|
|
35
35
|
*
|
|
36
|
-
* @
|
|
37
|
-
* @param
|
|
38
|
-
* @param
|
|
39
|
-
* @param {string} [elementId] Uuid of the element to be scrolled. Either this property
|
|
36
|
+
* @param deltaX - Horizontal delta as float number
|
|
37
|
+
* @param deltaY - Vertical delta as float number
|
|
38
|
+
* @param elementId - Uuid of the element to be scrolled. Either this property
|
|
40
39
|
* or/and x and y must be set. If both are set then x and y are
|
|
41
40
|
* considered as relative element coordinates. If only x and y are
|
|
42
41
|
* set then these are parsed as absolute coordinates.
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
45
|
-
* @param
|
|
42
|
+
* @param x - Scroll X coordinate
|
|
43
|
+
* @param y - Scroll Y coordinate
|
|
44
|
+
* @param keyModifierFlags - If set then the given key modifiers will be
|
|
46
45
|
* applied while scroll is performed. See
|
|
47
46
|
* https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
|
|
48
47
|
* for more details
|
|
49
48
|
*/
|
|
50
|
-
export function macosScroll(this:
|
|
49
|
+
export declare function macosScroll(this: Mac2Driver, deltaX: number, deltaY: number, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
|
|
51
50
|
/**
|
|
52
51
|
* Perform swipe gesture on an element
|
|
53
52
|
*
|
|
54
|
-
* @
|
|
55
|
-
* @param
|
|
56
|
-
* @param {string} [elementId] Uuid of the element to be swiped. Either this property
|
|
53
|
+
* @param direction - Swipe direction
|
|
54
|
+
* @param elementId - Uuid of the element to be swiped. Either this property
|
|
57
55
|
* or/and x and y must be set. If both are set then x and y are
|
|
58
56
|
* considered as relative element coordinates. If only x and y are
|
|
59
57
|
* set then these are parsed as absolute coordinates.
|
|
60
|
-
* @param
|
|
61
|
-
* @param
|
|
62
|
-
* @param
|
|
58
|
+
* @param x - Swipe X coordinate
|
|
59
|
+
* @param y - Swipe Y coordinate
|
|
60
|
+
* @param velocity - The value is measured in pixels per second and same
|
|
63
61
|
* values could behave differently on different devices depending
|
|
64
62
|
* on their display density. Higher values make swipe gesture faster
|
|
65
63
|
* (which usually scrolls larger areas if we apply it to a list)
|
|
66
64
|
* and lower values slow it down. Only values greater than zero have effect.
|
|
67
|
-
* @param
|
|
65
|
+
* @param keyModifierFlags - If set then the given key modifiers will be
|
|
68
66
|
* applied while scroll is performed. See
|
|
69
67
|
* https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
|
|
70
68
|
* for more details
|
|
71
69
|
*/
|
|
72
|
-
export function macosSwipe(this:
|
|
70
|
+
export declare function macosSwipe(this: Mac2Driver, direction: 'up' | 'down' | 'left' | 'right', elementId?: string, x?: number, y?: number, velocity?: number, keyModifierFlags?: number): Promise<unknown>;
|
|
73
71
|
/**
|
|
74
72
|
* Perform right click gesture on an element or by relative/absolute coordinates
|
|
75
73
|
*
|
|
76
|
-
* @this
|
|
77
|
-
* @param {string} [elementId] Uuid of the element to click. Either this property
|
|
74
|
+
* @param elementId - Uuid of the element to click. Either this property
|
|
78
75
|
* or/and x and y must be set. If both are set then x and y are
|
|
79
76
|
* considered as relative element coordinates. If only x and y
|
|
80
77
|
* are set then these are parsed as absolute coordinates.
|
|
81
|
-
* @param
|
|
82
|
-
* @param
|
|
83
|
-
* @param
|
|
78
|
+
* @param x - Click X coordinate
|
|
79
|
+
* @param y - Click Y coordinate
|
|
80
|
+
* @param keyModifierFlags - If set then the given key modifiers will be
|
|
84
81
|
* applied while click is performed. See
|
|
85
82
|
* https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
|
|
86
83
|
* for more details
|
|
87
84
|
*/
|
|
88
|
-
export function macosRightClick(this:
|
|
85
|
+
export declare function macosRightClick(this: Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
|
|
89
86
|
/**
|
|
90
87
|
* Perform hover gesture on an element or by relative/absolute coordinates
|
|
91
88
|
*
|
|
92
|
-
* @this
|
|
93
|
-
* @param {string} [elementId] Uuid of the element to hover. Either this property
|
|
89
|
+
* @param elementId - Uuid of the element to hover. Either this property
|
|
94
90
|
* or/and x and y must be set. If both are set then x and y are
|
|
95
91
|
* considered as relative element coordinates. If only x and y
|
|
96
92
|
* are set then these are parsed as absolute coordinates.
|
|
97
|
-
* @param
|
|
98
|
-
* @param
|
|
99
|
-
* @param
|
|
93
|
+
* @param x - Click X coordinate
|
|
94
|
+
* @param y - Click Y coordinate
|
|
95
|
+
* @param keyModifierFlags - If set then the given key modifiers will be
|
|
100
96
|
* applied while click is performed. See
|
|
101
97
|
* https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
|
|
102
98
|
* for more details
|
|
103
99
|
*/
|
|
104
|
-
export function macosHover(this:
|
|
100
|
+
export declare function macosHover(this: Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
|
|
105
101
|
/**
|
|
106
102
|
* Perform double click gesture on an element or by relative/absolute coordinates
|
|
107
103
|
*
|
|
108
|
-
* @this
|
|
109
|
-
* @param {string} [elementId] Uuid of the element to hover. Either this property
|
|
104
|
+
* @param elementId - Uuid of the element to hover. Either this property
|
|
110
105
|
* or/and x and y must be set. If both are set then x and y are
|
|
111
106
|
* considered as relative element coordinates. If only x and y
|
|
112
107
|
* are set then these are parsed as absolute coordinates.
|
|
113
|
-
* @param
|
|
114
|
-
* @param
|
|
115
|
-
* @param
|
|
108
|
+
* @param x - Click X coordinate
|
|
109
|
+
* @param y - Click Y coordinate
|
|
110
|
+
* @param keyModifierFlags - If set then the given key modifiers will be
|
|
116
111
|
* applied while click is performed. See
|
|
117
112
|
* https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
|
|
118
113
|
* for more details
|
|
119
114
|
*/
|
|
120
|
-
export function macosDoubleClick(this:
|
|
115
|
+
export declare function macosDoubleClick(this: Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
|
|
121
116
|
/**
|
|
122
117
|
* Perform long click and drag gesture on an element or by absolute coordinates
|
|
123
118
|
*
|
|
124
|
-
* @
|
|
125
|
-
* @param
|
|
126
|
-
* @param {string} [sourceElementId] Uuid of the element to start the drag from.
|
|
119
|
+
* @param duration - Long click duration in float seconds
|
|
120
|
+
* @param sourceElementId - Uuid of the element to start the drag from.
|
|
127
121
|
* Either this property and `destinationElement` must be provided
|
|
128
122
|
* or `startX`, `startY`, `endX`, `endY` coordinates must be set.
|
|
129
|
-
* @param
|
|
123
|
+
* @param destinationElementId - Uuid of the element to end the drag on.
|
|
130
124
|
* Either this property and `sourceElement` must be provided or
|
|
131
125
|
* `startX`, `startY`, `endX`, `endY` coordinatesmust be set.
|
|
132
|
-
* @param
|
|
133
|
-
* @param
|
|
134
|
-
* @param
|
|
135
|
-
* @param
|
|
136
|
-
* @param
|
|
126
|
+
* @param startX - Starting X coordinate
|
|
127
|
+
* @param startY - Starting Y coordinate
|
|
128
|
+
* @param endX - Ending X coordinate
|
|
129
|
+
* @param endY - Ending Y coordinate
|
|
130
|
+
* @param keyModifierFlags - If set then the given key modifiers will be
|
|
137
131
|
* applied while drag is performed. See
|
|
138
132
|
* https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
|
|
139
133
|
* for more details
|
|
140
134
|
*/
|
|
141
|
-
export function macosClickAndDrag(this:
|
|
135
|
+
export declare function macosClickAndDrag(this: Mac2Driver, duration: number, sourceElementId?: string, destinationElementId?: string, startX?: number, startY?: number, endX?: number, endY?: number, keyModifierFlags?: number): Promise<unknown>;
|
|
142
136
|
/**
|
|
143
137
|
* Perform long click, drag and hold gesture on an element or by absolute coordinates
|
|
144
138
|
*
|
|
145
|
-
* @
|
|
146
|
-
* @param
|
|
147
|
-
* @param
|
|
148
|
-
* @param {string} [sourceElementId] Uuid of the element to start the drag from.
|
|
139
|
+
* @param duration - Long click duration in float seconds
|
|
140
|
+
* @param holdDuration - Touch hold duration in float seconds
|
|
141
|
+
* @param sourceElementId - Uuid of the element to start the drag from.
|
|
149
142
|
* Either this property and `destinationElement` must be provided
|
|
150
143
|
* or `startX`, `startY`, `endX`, `endY` coordinates must be set.
|
|
151
|
-
* @param
|
|
144
|
+
* @param destinationElementId - Uuid of the element to end the drag on.
|
|
152
145
|
* Either this property and `sourceElement` must be provided
|
|
153
146
|
* or `startX`, `startY`, `endX`, `endY` coordinates must be set.
|
|
154
|
-
* @param
|
|
155
|
-
* @param
|
|
156
|
-
* @param
|
|
157
|
-
* @param
|
|
158
|
-
* @param
|
|
147
|
+
* @param startX - Starting X coordinate
|
|
148
|
+
* @param startY - Starting Y coordinate
|
|
149
|
+
* @param endX - Ending X coordinate
|
|
150
|
+
* @param endY - Ending Y coordinate
|
|
151
|
+
* @param velocity - Dragging velocity in pixels per second.
|
|
159
152
|
* If not provided then the default velocity is used. See
|
|
160
153
|
* https://developer.apple.com/documentation/xctest/xcuigesturevelocity
|
|
161
154
|
* for more details
|
|
162
|
-
* @param
|
|
155
|
+
* @param keyModifierFlags - If set then the given key modifiers will be
|
|
163
156
|
* applied while drag is performed. See
|
|
164
157
|
* https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
|
|
165
|
-
* for more details
|
|
166
|
-
|
|
158
|
+
* for more details
|
|
159
|
+
*/
|
|
160
|
+
export declare function macosClickAndDragAndHold(this: Mac2Driver, duration: number, holdDuration: number, sourceElementId?: string, destinationElementId?: string, startX?: number, startY?: number, endX?: number, endY?: number, velocity?: number, keyModifierFlags?: number): Promise<unknown>;
|
|
167
161
|
/**
|
|
168
162
|
* Send keys to the given element or to the application under test
|
|
169
163
|
*
|
|
170
|
-
* @
|
|
171
|
-
* @param {(import('../types').KeyOptions | string)[]} keys Array of keys to type.
|
|
164
|
+
* @param keys - Array of keys to type.
|
|
172
165
|
* Each item could either be a string, that represents a key itself (see
|
|
173
166
|
* https://developer.apple.com/documentation/xctest/xcuielement/1500604-typekey
|
|
174
167
|
* and https://developer.apple.com/documentation/xctest/xcuikeyboardkey)
|
|
175
168
|
* or a dictionary, if the key should also be entered with modifiers.
|
|
176
|
-
* @param
|
|
169
|
+
* @param elementId - Uuid of the element to send the keys to.
|
|
177
170
|
* If unset then keys are sent to the current application
|
|
178
171
|
* under test.
|
|
179
172
|
*/
|
|
180
|
-
export function macosKeys(this:
|
|
173
|
+
export declare function macosKeys(this: Mac2Driver, keys: (KeyOptions | string)[], elementId?: string): Promise<unknown>;
|
|
181
174
|
/**
|
|
182
175
|
* Perform tap gesture on a Touch Bar element or by relative/absolute coordinates
|
|
183
176
|
*
|
|
184
|
-
* @this
|
|
185
|
-
* @param {string} [elementId] Uuid of the Touch Bar element to tap. Either this property
|
|
177
|
+
* @param elementId - Uuid of the Touch Bar element to tap. Either this property
|
|
186
178
|
* or/and x and y must be set. If both are set then x and y are considered
|
|
187
179
|
* as relative element coordinates. If only x and y are set then
|
|
188
180
|
* these are parsed as absolute Touch Bar coordinates.
|
|
189
|
-
* @param
|
|
190
|
-
* @param
|
|
191
|
-
* @param
|
|
181
|
+
* @param x - Tap X coordinate
|
|
182
|
+
* @param y - Tap Y coordinate
|
|
183
|
+
* @param keyModifierFlags - If set then the given key modifiers will be
|
|
192
184
|
* applied while click is performed. See
|
|
193
185
|
* https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
|
|
194
186
|
* for more details
|
|
195
187
|
*/
|
|
196
|
-
export function macosTap(this:
|
|
188
|
+
export declare function macosTap(this: Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
|
|
197
189
|
/**
|
|
198
190
|
* Perform tap gesture on a Touch Bar element or by relative/absolute coordinates
|
|
199
191
|
*
|
|
200
|
-
* @this
|
|
201
|
-
*
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
* @param
|
|
206
|
-
* @param
|
|
207
|
-
* @param {number} [keyModifierFlags] If set then the given key modifiers will be
|
|
192
|
+
* @param elementId - Uuid of the Touch Bar element to tap. Either this property
|
|
193
|
+
* or/and x and y must be set. If both are set then x and y are considered
|
|
194
|
+
* as relative element coordinates. If only x and y are set then
|
|
195
|
+
* these are parsed as absolute Touch Bar coordinates.
|
|
196
|
+
* @param x - Tap X coordinate
|
|
197
|
+
* @param y - Tap Y coordinate
|
|
198
|
+
* @param keyModifierFlags - If set then the given key modifiers will be
|
|
208
199
|
* applied while click is performed. See
|
|
209
200
|
* https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
|
|
210
201
|
* for more details
|
|
211
202
|
*/
|
|
212
|
-
export function macosDoubleTap(this:
|
|
203
|
+
export declare function macosDoubleTap(this: Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
|
|
213
204
|
/**
|
|
214
205
|
* Perform press gesture on a Touch Bar element or by relative/absolute coordinates
|
|
215
206
|
*
|
|
216
|
-
* @
|
|
217
|
-
* @param
|
|
218
|
-
* @param {string} [elementId] Uuid of the Touch Bar element to be pressed. Either this property
|
|
207
|
+
* @param duration - The number of float seconds to hold the mouse button
|
|
208
|
+
* @param elementId - Uuid of the Touch Bar element to be pressed. Either this property
|
|
219
209
|
* or/and x and y must be set. If both are set then x and y are considered
|
|
220
210
|
* as relative element coordinates. If only x and y are set then these are
|
|
221
211
|
* parsed as absolute Touch Bar coordinates.
|
|
222
|
-
* @param
|
|
223
|
-
* @param
|
|
224
|
-
* @param
|
|
212
|
+
* @param x - Press X coordinate
|
|
213
|
+
* @param y - Press Y coordinate
|
|
214
|
+
* @param keyModifierFlags - If set then the given key modifiers will be
|
|
225
215
|
* applied while click is performed. See
|
|
226
216
|
* https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
|
|
227
217
|
* for more details
|
|
228
218
|
*/
|
|
229
|
-
export function macosPressAndHold(this:
|
|
219
|
+
export declare function macosPressAndHold(this: Mac2Driver, duration: number, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
|
|
230
220
|
/**
|
|
231
221
|
* Perform long press and drag gesture on a Touch Bar element or by absolute coordinates
|
|
232
222
|
*
|
|
233
|
-
* @
|
|
234
|
-
* @param
|
|
235
|
-
* @param {string} [sourceElementId] Uuid of a Touch Bar element to start the drag from.
|
|
223
|
+
* @param duration - Long press duration in float seconds
|
|
224
|
+
* @param sourceElementId - Uuid of a Touch Bar element to start the drag from.
|
|
236
225
|
* Either this property and `destinationElement` must be provided or
|
|
237
226
|
* `startX`, `startY`, `endX`, `endY` coordinates must be set.
|
|
238
|
-
* @param
|
|
227
|
+
* @param destinationElementId - Uuid of a Touch Bar element to end the drag on.
|
|
239
228
|
* Either this property and `sourceElement` must be provided or
|
|
240
229
|
* `startX`, `startY`, `endX`, `endY` coordinates must be set.
|
|
241
|
-
* @param
|
|
242
|
-
* @param
|
|
243
|
-
* @param
|
|
244
|
-
* @param
|
|
245
|
-
* @param
|
|
230
|
+
* @param startX - Starting X coordinate
|
|
231
|
+
* @param startY - Starting Y coordinate
|
|
232
|
+
* @param endX - Ending X coordinate
|
|
233
|
+
* @param endY - Ending Y coordinate
|
|
234
|
+
* @param keyModifierFlags - If set then the given key modifiers will be
|
|
246
235
|
* applied while drag is performed. See
|
|
247
236
|
* https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
|
|
248
237
|
* for more details
|
|
249
238
|
*/
|
|
250
|
-
export function macosPressAndDrag(this:
|
|
239
|
+
export declare function macosPressAndDrag(this: Mac2Driver, duration: number, sourceElementId?: string, destinationElementId?: string, startX?: number, startY?: number, endX?: number, endY?: number, keyModifierFlags?: number): Promise<unknown>;
|
|
251
240
|
/**
|
|
252
241
|
* Perform press, drag and hold gesture on a Touch Bar element or by absolute Touch Bar coordinates
|
|
253
242
|
*
|
|
254
|
-
* @
|
|
255
|
-
* @param
|
|
256
|
-
* @param
|
|
257
|
-
* @param {string} [sourceElementId] Uuid of a Touch Bar element to start the drag from.
|
|
243
|
+
* @param duration - Long press duration in float seconds
|
|
244
|
+
* @param holdDuration - Touch hold duration in float seconds
|
|
245
|
+
* @param sourceElementId - Uuid of a Touch Bar element to start the drag from.
|
|
258
246
|
* Either this property and `destinationElement` must be provided or
|
|
259
247
|
* `startX`, `startY`, `endX`, `endY` coordinates must be set.
|
|
260
|
-
* @param
|
|
248
|
+
* @param destinationElementId - Uuid of a Touch Bar element to end the drag on.
|
|
261
249
|
* Either this property and `sourceElement` must be provided or
|
|
262
250
|
* `startX`, `startY`, `endX`, `endY` coordinates must be set.
|
|
263
|
-
* @param
|
|
264
|
-
* @param
|
|
265
|
-
* @param
|
|
266
|
-
* @param
|
|
267
|
-
* @param
|
|
251
|
+
* @param startX - Starting X coordinate
|
|
252
|
+
* @param startY - Starting Y coordinate
|
|
253
|
+
* @param endX - Ending X coordinate
|
|
254
|
+
* @param endY - Ending Y coordinate
|
|
255
|
+
* @param velocity - Dragging velocity in pixels per second.
|
|
268
256
|
* If not provided then the default velocity is used. See
|
|
269
257
|
* https://developer.apple.com/documentation/xctest/xcuigesturevelocity
|
|
270
258
|
* for more details
|
|
271
|
-
* @param
|
|
259
|
+
* @param keyModifierFlags - If set then the given key modifiers will be
|
|
272
260
|
* applied while drag is performed. See
|
|
273
261
|
* https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
|
|
274
262
|
* for more details
|
|
275
263
|
*/
|
|
276
|
-
export function macosPressAndDragAndHold(this:
|
|
277
|
-
export type Mac2Driver = import("../driver").Mac2Driver;
|
|
264
|
+
export declare function macosPressAndDragAndHold(this: Mac2Driver, duration: number, holdDuration: number, sourceElementId?: string, destinationElementId?: string, startX?: number, startY?: number, endX?: number, endY?: number, velocity?: number, keyModifierFlags?: number): Promise<unknown>;
|
|
278
265
|
//# sourceMappingURL=gestures.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gestures.d.ts","sourceRoot":"","sources":["../../../lib/commands/gestures.
|
|
1
|
+
{"version":3,"file":"gestures.d.ts","sourceRoot":"","sources":["../../../lib/commands/gestures.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,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