@appium/base-driver 10.0.0 → 10.1.0
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/build/lib/basedriver/capabilities.d.ts +1 -1
- package/build/lib/basedriver/capabilities.d.ts.map +1 -1
- package/build/lib/basedriver/capabilities.js +3 -1
- package/build/lib/basedriver/capabilities.js.map +1 -1
- package/build/lib/basedriver/core.js +44 -5
- package/build/lib/basedriver/core.js.map +1 -1
- package/build/lib/basedriver/device-settings.js +10 -0
- package/build/lib/basedriver/device-settings.js.map +1 -1
- package/build/lib/basedriver/driver.js +8 -0
- package/build/lib/basedriver/driver.js.map +1 -1
- package/build/lib/basedriver/extension-core.js +6 -1
- package/build/lib/basedriver/extension-core.js.map +1 -1
- package/build/lib/basedriver/helpers.d.ts +2 -2
- package/build/lib/basedriver/helpers.js +2 -2
- package/build/lib/basedriver/validation.js +90 -92
- package/build/lib/basedriver/validation.js.map +1 -1
- package/build/lib/helpers/capabilities.d.ts +1 -1
- package/build/lib/helpers/capabilities.js +2 -2
- package/build/lib/jsonwp-proxy/proxy-request.js +3 -0
- package/build/lib/jsonwp-proxy/proxy-request.js.map +1 -1
- package/build/lib/jsonwp-proxy/proxy.js +18 -0
- package/build/lib/jsonwp-proxy/proxy.js.map +1 -1
- package/build/lib/protocol/errors.js +11 -0
- package/build/lib/protocol/errors.js.map +1 -1
- package/build/lib/protocol/routes.d.ts +330 -186
- package/build/lib/protocol/routes.d.ts.map +1 -1
- package/build/lib/protocol/routes.js +254 -160
- package/build/lib/protocol/routes.js.map +1 -1
- package/lib/basedriver/capabilities.ts +6 -4
- package/lib/basedriver/helpers.js +2 -2
- package/lib/helpers/capabilities.js +2 -2
- package/lib/protocol/routes.js +257 -163
- package/package.json +8 -8
|
@@ -13,11 +13,6 @@ export function routeToCommandName(endpoint: string, method?: import("@appium/ty
|
|
|
13
13
|
* @satisfies {import('@appium/types').MethodMap<import('../basedriver/driver').BaseDriver>}
|
|
14
14
|
*/
|
|
15
15
|
export const METHOD_MAP: {
|
|
16
|
-
readonly '/status': {
|
|
17
|
-
readonly GET: {
|
|
18
|
-
readonly command: "getStatus";
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
16
|
readonly '/session': {
|
|
22
17
|
readonly POST: {
|
|
23
18
|
readonly command: "createSession";
|
|
@@ -35,6 +30,11 @@ export const METHOD_MAP: {
|
|
|
35
30
|
readonly command: "deleteSession";
|
|
36
31
|
};
|
|
37
32
|
};
|
|
33
|
+
readonly '/status': {
|
|
34
|
+
readonly GET: {
|
|
35
|
+
readonly command: "getStatus";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
38
|
readonly '/session/:sessionId/timeouts': {
|
|
39
39
|
readonly GET: {
|
|
40
40
|
readonly command: "getTimeouts";
|
|
@@ -46,11 +46,6 @@ export const METHOD_MAP: {
|
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
-
readonly '/session/:sessionId/window/handles': {
|
|
50
|
-
readonly GET: {
|
|
51
|
-
readonly command: "getWindowHandles";
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
49
|
readonly '/session/:sessionId/url': {
|
|
55
50
|
readonly GET: {
|
|
56
51
|
readonly command: "getUrl";
|
|
@@ -77,22 +72,9 @@ export const METHOD_MAP: {
|
|
|
77
72
|
readonly command: "refresh";
|
|
78
73
|
};
|
|
79
74
|
};
|
|
80
|
-
readonly '/session/:sessionId/
|
|
75
|
+
readonly '/session/:sessionId/title': {
|
|
81
76
|
readonly GET: {
|
|
82
|
-
readonly command: "
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
readonly '/session/:sessionId/frame': {
|
|
86
|
-
readonly POST: {
|
|
87
|
-
readonly command: "setFrame";
|
|
88
|
-
readonly payloadParams: {
|
|
89
|
-
readonly required: readonly ["id"];
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
readonly '/session/:sessionId/frame/parent': {
|
|
94
|
-
readonly POST: {
|
|
95
|
-
readonly command: "switchToParentFrame";
|
|
77
|
+
readonly command: "title";
|
|
96
78
|
};
|
|
97
79
|
};
|
|
98
80
|
readonly '/session/:sessionId/window': {
|
|
@@ -109,59 +91,66 @@ export const METHOD_MAP: {
|
|
|
109
91
|
readonly command: "closeWindow";
|
|
110
92
|
};
|
|
111
93
|
};
|
|
112
|
-
readonly '/session/:sessionId/window/
|
|
113
|
-
readonly
|
|
114
|
-
readonly command: "
|
|
94
|
+
readonly '/session/:sessionId/window/handles': {
|
|
95
|
+
readonly GET: {
|
|
96
|
+
readonly command: "getWindowHandles";
|
|
115
97
|
};
|
|
116
98
|
};
|
|
117
|
-
readonly '/session/:sessionId/window/
|
|
99
|
+
readonly '/session/:sessionId/window/new': {
|
|
118
100
|
readonly POST: {
|
|
119
|
-
readonly command: "
|
|
101
|
+
readonly command: "createNewWindow";
|
|
102
|
+
readonly payloadParams: {
|
|
103
|
+
readonly optional: readonly ["type"];
|
|
104
|
+
};
|
|
120
105
|
};
|
|
121
106
|
};
|
|
122
|
-
readonly '/session/:sessionId/
|
|
107
|
+
readonly '/session/:sessionId/frame': {
|
|
123
108
|
readonly POST: {
|
|
124
|
-
readonly command: "
|
|
109
|
+
readonly command: "setFrame";
|
|
110
|
+
readonly payloadParams: {
|
|
111
|
+
readonly required: readonly ["id"];
|
|
112
|
+
};
|
|
125
113
|
};
|
|
126
114
|
};
|
|
127
|
-
readonly '/session/:sessionId/
|
|
115
|
+
readonly '/session/:sessionId/frame/parent': {
|
|
128
116
|
readonly POST: {
|
|
129
|
-
readonly command: "
|
|
130
|
-
readonly payloadParams: {
|
|
131
|
-
readonly optional: readonly ["type"];
|
|
132
|
-
};
|
|
117
|
+
readonly command: "switchToParentFrame";
|
|
133
118
|
};
|
|
134
119
|
};
|
|
135
|
-
readonly '/session/:sessionId/
|
|
120
|
+
readonly '/session/:sessionId/window/rect': {
|
|
136
121
|
readonly GET: {
|
|
137
|
-
readonly command: "
|
|
122
|
+
readonly command: "getWindowRect";
|
|
138
123
|
};
|
|
139
124
|
readonly POST: {
|
|
140
|
-
readonly command: "
|
|
125
|
+
readonly command: "setWindowRect";
|
|
141
126
|
readonly payloadParams: {
|
|
142
|
-
readonly
|
|
127
|
+
readonly optional: readonly ["x", "y", "width", "height"];
|
|
143
128
|
};
|
|
144
129
|
};
|
|
145
|
-
|
|
146
|
-
|
|
130
|
+
};
|
|
131
|
+
readonly '/session/:sessionId/window/maximize': {
|
|
132
|
+
readonly POST: {
|
|
133
|
+
readonly command: "maximizeWindow";
|
|
147
134
|
};
|
|
148
135
|
};
|
|
149
|
-
readonly '/session/:sessionId/
|
|
150
|
-
readonly
|
|
151
|
-
readonly command: "
|
|
136
|
+
readonly '/session/:sessionId/window/minimize': {
|
|
137
|
+
readonly POST: {
|
|
138
|
+
readonly command: "minimizeWindow";
|
|
152
139
|
};
|
|
153
|
-
|
|
154
|
-
|
|
140
|
+
};
|
|
141
|
+
readonly '/session/:sessionId/window/fullscreen': {
|
|
142
|
+
readonly POST: {
|
|
143
|
+
readonly command: "fullScreenWindow";
|
|
155
144
|
};
|
|
156
145
|
};
|
|
157
|
-
readonly '/session/:sessionId/
|
|
146
|
+
readonly '/session/:sessionId/element/active': {
|
|
158
147
|
readonly GET: {
|
|
159
|
-
readonly command: "
|
|
148
|
+
readonly command: "active";
|
|
160
149
|
};
|
|
161
150
|
};
|
|
162
|
-
readonly '/session/:sessionId/
|
|
151
|
+
readonly '/session/:sessionId/element/:elementId/shadow': {
|
|
163
152
|
readonly GET: {
|
|
164
|
-
readonly command: "
|
|
153
|
+
readonly command: "elementShadowRoot";
|
|
165
154
|
};
|
|
166
155
|
};
|
|
167
156
|
readonly '/session/:sessionId/element': {
|
|
@@ -180,14 +169,6 @@ export const METHOD_MAP: {
|
|
|
180
169
|
};
|
|
181
170
|
};
|
|
182
171
|
};
|
|
183
|
-
readonly '/session/:sessionId/element/active': {
|
|
184
|
-
readonly GET: {
|
|
185
|
-
readonly command: "active";
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
readonly '/session/:sessionId/element/:elementId': {
|
|
189
|
-
readonly GET: {};
|
|
190
|
-
};
|
|
191
172
|
readonly '/session/:sessionId/element/:elementId/element': {
|
|
192
173
|
readonly POST: {
|
|
193
174
|
readonly command: "findElementFromElement";
|
|
@@ -204,32 +185,20 @@ export const METHOD_MAP: {
|
|
|
204
185
|
};
|
|
205
186
|
};
|
|
206
187
|
};
|
|
207
|
-
readonly '/session/:sessionId/
|
|
208
|
-
readonly POST: {
|
|
209
|
-
readonly command: "click";
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
readonly '/session/:sessionId/element/:elementId/text': {
|
|
213
|
-
readonly GET: {
|
|
214
|
-
readonly command: "getText";
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
readonly '/session/:sessionId/element/:elementId/value': {
|
|
188
|
+
readonly '/session/:sessionId/shadow/:shadowId/element': {
|
|
218
189
|
readonly POST: {
|
|
219
|
-
readonly command: "
|
|
190
|
+
readonly command: "findElementFromShadowRoot";
|
|
220
191
|
readonly payloadParams: {
|
|
221
|
-
readonly required: readonly ["
|
|
192
|
+
readonly required: readonly ["using", "value"];
|
|
222
193
|
};
|
|
223
194
|
};
|
|
224
195
|
};
|
|
225
|
-
readonly '/session/:sessionId/
|
|
226
|
-
readonly GET: {
|
|
227
|
-
readonly command: "getName";
|
|
228
|
-
};
|
|
229
|
-
};
|
|
230
|
-
readonly '/session/:sessionId/element/:elementId/clear': {
|
|
196
|
+
readonly '/session/:sessionId/shadow/:shadowId/elements': {
|
|
231
197
|
readonly POST: {
|
|
232
|
-
readonly command: "
|
|
198
|
+
readonly command: "findElementsFromShadowRoot";
|
|
199
|
+
readonly payloadParams: {
|
|
200
|
+
readonly required: readonly ["using", "value"];
|
|
201
|
+
};
|
|
233
202
|
};
|
|
234
203
|
};
|
|
235
204
|
readonly '/session/:sessionId/element/:elementId/selected': {
|
|
@@ -237,9 +206,9 @@ export const METHOD_MAP: {
|
|
|
237
206
|
readonly command: "elementSelected";
|
|
238
207
|
};
|
|
239
208
|
};
|
|
240
|
-
readonly '/session/:sessionId/element/:elementId/
|
|
209
|
+
readonly '/session/:sessionId/element/:elementId/displayed': {
|
|
241
210
|
readonly GET: {
|
|
242
|
-
readonly command: "
|
|
211
|
+
readonly command: "elementDisplayed";
|
|
243
212
|
};
|
|
244
213
|
};
|
|
245
214
|
readonly '/session/:sessionId/element/:elementId/attribute/:name': {
|
|
@@ -247,118 +216,154 @@ export const METHOD_MAP: {
|
|
|
247
216
|
readonly command: "getAttribute";
|
|
248
217
|
};
|
|
249
218
|
};
|
|
250
|
-
readonly '/session/:sessionId/element/:elementId/
|
|
219
|
+
readonly '/session/:sessionId/element/:elementId/property/:name': {
|
|
251
220
|
readonly GET: {
|
|
252
|
-
readonly command: "
|
|
221
|
+
readonly command: "getProperty";
|
|
253
222
|
};
|
|
254
223
|
};
|
|
255
|
-
readonly '/session/:sessionId/element/:elementId/
|
|
224
|
+
readonly '/session/:sessionId/element/:elementId/css/:propertyName': {
|
|
256
225
|
readonly GET: {
|
|
257
|
-
readonly command: "
|
|
226
|
+
readonly command: "getCssProperty";
|
|
258
227
|
};
|
|
259
228
|
};
|
|
260
|
-
readonly '/session/:sessionId/
|
|
261
|
-
readonly
|
|
262
|
-
readonly command: "
|
|
263
|
-
readonly payloadParams: {
|
|
264
|
-
readonly required: readonly ["using", "value"];
|
|
265
|
-
};
|
|
229
|
+
readonly '/session/:sessionId/element/:elementId/text': {
|
|
230
|
+
readonly GET: {
|
|
231
|
+
readonly command: "getText";
|
|
266
232
|
};
|
|
267
233
|
};
|
|
268
|
-
readonly '/session/:sessionId/
|
|
269
|
-
readonly
|
|
270
|
-
readonly command: "
|
|
271
|
-
readonly payloadParams: {
|
|
272
|
-
readonly required: readonly ["using", "value"];
|
|
273
|
-
};
|
|
234
|
+
readonly '/session/:sessionId/element/:elementId/name': {
|
|
235
|
+
readonly GET: {
|
|
236
|
+
readonly command: "getName";
|
|
274
237
|
};
|
|
275
238
|
};
|
|
276
|
-
readonly '/session/:sessionId/element/:elementId/
|
|
239
|
+
readonly '/session/:sessionId/element/:elementId/rect': {
|
|
277
240
|
readonly GET: {
|
|
278
|
-
readonly command: "
|
|
241
|
+
readonly command: "getElementRect";
|
|
279
242
|
};
|
|
280
243
|
};
|
|
281
|
-
readonly '/session/:sessionId/element/:elementId/
|
|
244
|
+
readonly '/session/:sessionId/element/:elementId/enabled': {
|
|
282
245
|
readonly GET: {
|
|
283
|
-
readonly command: "
|
|
246
|
+
readonly command: "elementEnabled";
|
|
284
247
|
};
|
|
285
248
|
};
|
|
286
|
-
readonly 'session/:sessionId/element/:elementId/computedrole': {
|
|
249
|
+
readonly '/session/:sessionId/element/:elementId/computedrole': {
|
|
287
250
|
readonly GET: {
|
|
288
251
|
readonly command: "getComputedRole";
|
|
289
252
|
};
|
|
290
253
|
};
|
|
291
|
-
readonly 'session/:sessionId/element/:elementId/computedlabel': {
|
|
254
|
+
readonly '/session/:sessionId/element/:elementId/computedlabel': {
|
|
292
255
|
readonly GET: {
|
|
293
256
|
readonly command: "getComputedLabel";
|
|
294
257
|
};
|
|
295
258
|
};
|
|
296
|
-
readonly '/session/:sessionId/
|
|
259
|
+
readonly '/session/:sessionId/element/:elementId/click': {
|
|
297
260
|
readonly POST: {
|
|
298
|
-
readonly command: "
|
|
261
|
+
readonly command: "click";
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
readonly '/session/:sessionId/element/:elementId/clear': {
|
|
265
|
+
readonly POST: {
|
|
266
|
+
readonly command: "clear";
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
readonly '/session/:sessionId/element/:elementId/value': {
|
|
270
|
+
readonly POST: {
|
|
271
|
+
readonly command: "setValue";
|
|
299
272
|
readonly payloadParams: {
|
|
300
|
-
readonly required: readonly ["
|
|
273
|
+
readonly required: readonly ["text"];
|
|
301
274
|
};
|
|
302
275
|
};
|
|
303
|
-
readonly DELETE: {
|
|
304
|
-
readonly command: "releaseActions";
|
|
305
|
-
};
|
|
306
276
|
};
|
|
307
|
-
readonly '/session/:sessionId/
|
|
277
|
+
readonly '/session/:sessionId/source': {
|
|
308
278
|
readonly GET: {
|
|
309
|
-
readonly command: "
|
|
279
|
+
readonly command: "getPageSource";
|
|
310
280
|
};
|
|
281
|
+
};
|
|
282
|
+
readonly '/session/:sessionId/execute/sync': {
|
|
311
283
|
readonly POST: {
|
|
312
|
-
readonly command: "
|
|
284
|
+
readonly command: "execute";
|
|
313
285
|
readonly payloadParams: {
|
|
314
|
-
readonly required: readonly ["
|
|
286
|
+
readonly required: readonly ["script", "args"];
|
|
315
287
|
};
|
|
316
288
|
};
|
|
317
289
|
};
|
|
318
|
-
readonly '/session/:sessionId/
|
|
290
|
+
readonly '/session/:sessionId/execute/async': {
|
|
319
291
|
readonly POST: {
|
|
320
|
-
readonly command: "
|
|
292
|
+
readonly command: "executeAsync";
|
|
293
|
+
readonly payloadParams: {
|
|
294
|
+
readonly required: readonly ["script", "args"];
|
|
295
|
+
};
|
|
321
296
|
};
|
|
322
297
|
};
|
|
323
|
-
readonly '/session/:sessionId/
|
|
298
|
+
readonly '/session/:sessionId/cookie': {
|
|
299
|
+
readonly GET: {
|
|
300
|
+
readonly command: "getCookies";
|
|
301
|
+
};
|
|
324
302
|
readonly POST: {
|
|
325
|
-
readonly command: "
|
|
303
|
+
readonly command: "setCookie";
|
|
304
|
+
readonly payloadParams: {
|
|
305
|
+
readonly required: readonly ["cookie"];
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
readonly DELETE: {
|
|
309
|
+
readonly command: "deleteCookies";
|
|
326
310
|
};
|
|
327
311
|
};
|
|
328
|
-
readonly '/session/:sessionId/
|
|
312
|
+
readonly '/session/:sessionId/cookie/:name': {
|
|
329
313
|
readonly GET: {
|
|
330
|
-
readonly command: "
|
|
314
|
+
readonly command: "getCookie";
|
|
315
|
+
};
|
|
316
|
+
readonly DELETE: {
|
|
317
|
+
readonly command: "deleteCookie";
|
|
331
318
|
};
|
|
332
319
|
};
|
|
333
|
-
readonly '/session/:sessionId/
|
|
320
|
+
readonly '/session/:sessionId/actions': {
|
|
334
321
|
readonly POST: {
|
|
335
|
-
readonly command: "
|
|
322
|
+
readonly command: "performActions";
|
|
336
323
|
readonly payloadParams: {
|
|
337
|
-
readonly required: readonly ["
|
|
324
|
+
readonly required: readonly ["actions"];
|
|
338
325
|
};
|
|
339
326
|
};
|
|
327
|
+
readonly DELETE: {
|
|
328
|
+
readonly command: "releaseActions";
|
|
329
|
+
};
|
|
340
330
|
};
|
|
341
|
-
readonly '/session/:sessionId/
|
|
331
|
+
readonly '/session/:sessionId/alert/dismiss': {
|
|
342
332
|
readonly POST: {
|
|
343
|
-
readonly command: "
|
|
333
|
+
readonly command: "postDismissAlert";
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
readonly '/session/:sessionId/alert/accept': {
|
|
337
|
+
readonly POST: {
|
|
338
|
+
readonly command: "postAcceptAlert";
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
readonly '/session/:sessionId/alert/text': {
|
|
342
|
+
readonly GET: {
|
|
343
|
+
readonly command: "getAlertText";
|
|
344
|
+
};
|
|
345
|
+
readonly POST: {
|
|
346
|
+
readonly command: "setAlertText";
|
|
344
347
|
readonly payloadParams: {
|
|
345
|
-
readonly required: readonly ["
|
|
348
|
+
readonly required: readonly ["text"];
|
|
346
349
|
};
|
|
347
350
|
};
|
|
348
351
|
};
|
|
349
|
-
readonly '/session/:sessionId/
|
|
352
|
+
readonly '/session/:sessionId/screenshot': {
|
|
350
353
|
readonly GET: {
|
|
351
|
-
readonly command: "
|
|
354
|
+
readonly command: "getScreenshot";
|
|
352
355
|
};
|
|
353
356
|
};
|
|
354
|
-
readonly '/session/:sessionId/
|
|
357
|
+
readonly '/session/:sessionId/element/:elementId/screenshot': {
|
|
355
358
|
readonly GET: {
|
|
356
|
-
readonly command: "
|
|
359
|
+
readonly command: "getElementScreenshot";
|
|
357
360
|
};
|
|
361
|
+
};
|
|
362
|
+
readonly '/session/:sessionId/print': {
|
|
358
363
|
readonly POST: {
|
|
359
|
-
readonly command: "
|
|
364
|
+
readonly command: "printPage";
|
|
360
365
|
readonly payloadParams: {
|
|
361
|
-
readonly optional: readonly ["
|
|
366
|
+
readonly optional: readonly ["orientation", "scale", "background", "page", "margin", "shrinkToFit", "pageRanges"];
|
|
362
367
|
};
|
|
363
368
|
};
|
|
364
369
|
};
|
|
@@ -395,14 +400,14 @@ export const METHOD_MAP: {
|
|
|
395
400
|
readonly deprecated: true;
|
|
396
401
|
};
|
|
397
402
|
};
|
|
398
|
-
readonly '/session/:sessionId/
|
|
403
|
+
readonly '/session/:sessionId/orientation': {
|
|
399
404
|
readonly GET: {
|
|
400
|
-
readonly command: "
|
|
405
|
+
readonly command: "getOrientation";
|
|
401
406
|
};
|
|
402
407
|
readonly POST: {
|
|
403
|
-
readonly command: "
|
|
408
|
+
readonly command: "setOrientation";
|
|
404
409
|
readonly payloadParams: {
|
|
405
|
-
readonly required: readonly ["
|
|
410
|
+
readonly required: readonly ["orientation"];
|
|
406
411
|
};
|
|
407
412
|
};
|
|
408
413
|
};
|
|
@@ -419,14 +424,14 @@ export const METHOD_MAP: {
|
|
|
419
424
|
readonly deprecated: true;
|
|
420
425
|
};
|
|
421
426
|
};
|
|
422
|
-
readonly '/session/:sessionId/
|
|
427
|
+
readonly '/session/:sessionId/rotation': {
|
|
423
428
|
readonly GET: {
|
|
424
|
-
readonly command: "
|
|
429
|
+
readonly command: "getRotation";
|
|
425
430
|
};
|
|
426
431
|
readonly POST: {
|
|
427
|
-
readonly command: "
|
|
432
|
+
readonly command: "setRotation";
|
|
428
433
|
readonly payloadParams: {
|
|
429
|
-
readonly required: readonly ["
|
|
434
|
+
readonly required: readonly ["x", "y", "z"];
|
|
430
435
|
};
|
|
431
436
|
};
|
|
432
437
|
};
|
|
@@ -460,23 +465,51 @@ export const METHOD_MAP: {
|
|
|
460
465
|
readonly deprecated: true;
|
|
461
466
|
};
|
|
462
467
|
};
|
|
463
|
-
readonly '/
|
|
468
|
+
readonly '/appium/sessions': {
|
|
469
|
+
readonly GET: {
|
|
470
|
+
readonly command: "getAppiumSessions";
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
readonly '/session/:sessionId/appium/capabilities': {
|
|
474
|
+
readonly GET: {
|
|
475
|
+
readonly command: "getAppiumSessionCapabilities";
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
readonly '/session/:sessionId/appium/settings': {
|
|
464
479
|
readonly POST: {
|
|
465
|
-
readonly command: "
|
|
480
|
+
readonly command: "updateSettings";
|
|
466
481
|
readonly payloadParams: {
|
|
467
|
-
readonly required: readonly ["
|
|
482
|
+
readonly required: readonly ["settings"];
|
|
468
483
|
};
|
|
469
|
-
|
|
484
|
+
};
|
|
485
|
+
readonly GET: {
|
|
486
|
+
readonly command: "getSettings";
|
|
470
487
|
};
|
|
471
488
|
};
|
|
472
|
-
readonly '/appium/
|
|
489
|
+
readonly '/session/:sessionId/appium/commands': {
|
|
473
490
|
readonly GET: {
|
|
474
|
-
readonly command: "
|
|
491
|
+
readonly command: "listCommands";
|
|
475
492
|
};
|
|
476
493
|
};
|
|
477
|
-
readonly '/session/:sessionId/appium/
|
|
494
|
+
readonly '/session/:sessionId/appium/extensions': {
|
|
478
495
|
readonly GET: {
|
|
479
|
-
readonly command: "
|
|
496
|
+
readonly command: "listExtensions";
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
readonly '/session/:sessionId/appium/events': {
|
|
500
|
+
readonly POST: {
|
|
501
|
+
readonly command: "getLogEvents";
|
|
502
|
+
readonly payloadParams: {
|
|
503
|
+
readonly optional: readonly ["type"];
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
readonly '/session/:sessionId/appium/log_event': {
|
|
508
|
+
readonly POST: {
|
|
509
|
+
readonly command: "logCustomEvent";
|
|
510
|
+
readonly payloadParams: {
|
|
511
|
+
readonly required: readonly ["vendor", "event"];
|
|
512
|
+
};
|
|
480
513
|
};
|
|
481
514
|
};
|
|
482
515
|
readonly '/session/:sessionId/appium/device/system_time': {
|
|
@@ -490,53 +523,53 @@ export const METHOD_MAP: {
|
|
|
490
523
|
};
|
|
491
524
|
};
|
|
492
525
|
};
|
|
493
|
-
readonly '/session/:sessionId/appium/device/
|
|
526
|
+
readonly '/session/:sessionId/appium/device/activate_app': {
|
|
494
527
|
readonly POST: {
|
|
495
|
-
readonly command: "
|
|
528
|
+
readonly command: "activateApp";
|
|
496
529
|
readonly payloadParams: {
|
|
497
|
-
readonly required: readonly ["
|
|
530
|
+
readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
|
|
498
531
|
readonly optional: readonly ["options"];
|
|
499
532
|
};
|
|
500
533
|
};
|
|
501
534
|
};
|
|
502
|
-
readonly '/session/:sessionId/appium/device/
|
|
535
|
+
readonly '/session/:sessionId/appium/device/terminate_app': {
|
|
503
536
|
readonly POST: {
|
|
504
|
-
readonly command: "
|
|
537
|
+
readonly command: "terminateApp";
|
|
505
538
|
readonly payloadParams: {
|
|
506
539
|
readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
|
|
507
540
|
readonly optional: readonly ["options"];
|
|
508
541
|
};
|
|
509
542
|
};
|
|
510
543
|
};
|
|
511
|
-
readonly '/session/:sessionId/appium/device/
|
|
544
|
+
readonly '/session/:sessionId/appium/device/app_state': {
|
|
512
545
|
readonly POST: {
|
|
513
|
-
readonly command: "
|
|
546
|
+
readonly command: "queryAppState";
|
|
514
547
|
readonly payloadParams: {
|
|
515
548
|
readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
|
|
516
|
-
readonly optional: readonly ["options"];
|
|
517
549
|
};
|
|
518
550
|
};
|
|
519
551
|
};
|
|
520
|
-
readonly '/session/:sessionId/appium/device/
|
|
552
|
+
readonly '/session/:sessionId/appium/device/install_app': {
|
|
521
553
|
readonly POST: {
|
|
522
|
-
readonly command: "
|
|
554
|
+
readonly command: "installApp";
|
|
523
555
|
readonly payloadParams: {
|
|
524
|
-
readonly required: readonly [
|
|
556
|
+
readonly required: readonly ["appPath"];
|
|
525
557
|
readonly optional: readonly ["options"];
|
|
526
558
|
};
|
|
527
559
|
};
|
|
528
560
|
};
|
|
529
|
-
readonly '/session/:sessionId/appium/device/
|
|
561
|
+
readonly '/session/:sessionId/appium/device/remove_app': {
|
|
530
562
|
readonly POST: {
|
|
531
|
-
readonly command: "
|
|
563
|
+
readonly command: "removeApp";
|
|
532
564
|
readonly payloadParams: {
|
|
533
565
|
readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
|
|
566
|
+
readonly optional: readonly ["options"];
|
|
534
567
|
};
|
|
535
568
|
};
|
|
536
569
|
};
|
|
537
|
-
readonly '/session/:sessionId/appium/device/
|
|
570
|
+
readonly '/session/:sessionId/appium/device/app_installed': {
|
|
538
571
|
readonly POST: {
|
|
539
|
-
readonly command: "
|
|
572
|
+
readonly command: "isAppInstalled";
|
|
540
573
|
readonly payloadParams: {
|
|
541
574
|
readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
|
|
542
575
|
};
|
|
@@ -579,61 +612,95 @@ export const METHOD_MAP: {
|
|
|
579
612
|
};
|
|
580
613
|
};
|
|
581
614
|
};
|
|
582
|
-
readonly '/session/:sessionId/
|
|
615
|
+
readonly '/session/:sessionId/receive_async_response': {
|
|
583
616
|
readonly POST: {
|
|
584
|
-
readonly command: "
|
|
617
|
+
readonly command: "receiveAsyncResponse";
|
|
585
618
|
readonly payloadParams: {
|
|
586
|
-
readonly required: readonly ["
|
|
619
|
+
readonly required: readonly ["status", "value"];
|
|
587
620
|
};
|
|
621
|
+
readonly deprecated: true;
|
|
588
622
|
};
|
|
623
|
+
};
|
|
624
|
+
readonly '/session/:sessionId/element/:elementId': {
|
|
625
|
+
readonly GET: {};
|
|
626
|
+
};
|
|
627
|
+
readonly '/session/:sessionId/se/log': {
|
|
628
|
+
readonly POST: {
|
|
629
|
+
readonly command: "getLog";
|
|
630
|
+
readonly payloadParams: {
|
|
631
|
+
readonly required: readonly ["type"];
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
readonly '/session/:sessionId/se/log/types': {
|
|
589
636
|
readonly GET: {
|
|
590
|
-
readonly command: "
|
|
637
|
+
readonly command: "getLogTypes";
|
|
591
638
|
};
|
|
592
639
|
};
|
|
593
|
-
readonly '/session/:sessionId/
|
|
640
|
+
readonly '/session/:sessionId/:vendor/cdp/execute': {
|
|
594
641
|
readonly POST: {
|
|
595
|
-
readonly command: "
|
|
642
|
+
readonly command: "executeCdp";
|
|
596
643
|
readonly payloadParams: {
|
|
597
|
-
readonly
|
|
644
|
+
readonly required: readonly ["cmd", "params"];
|
|
598
645
|
};
|
|
599
646
|
};
|
|
600
647
|
};
|
|
601
|
-
readonly '/session/:sessionId/
|
|
648
|
+
readonly '/session/:sessionId/reporting/generate_test_report': {
|
|
602
649
|
readonly POST: {
|
|
603
|
-
readonly command: "
|
|
650
|
+
readonly command: "generateTestReport";
|
|
604
651
|
readonly payloadParams: {
|
|
605
|
-
readonly required: readonly ["
|
|
652
|
+
readonly required: readonly ["message"];
|
|
653
|
+
readonly optional: readonly ["group"];
|
|
606
654
|
};
|
|
607
655
|
};
|
|
608
656
|
};
|
|
609
|
-
readonly '/session/:sessionId/
|
|
610
|
-
readonly
|
|
611
|
-
readonly command: "
|
|
657
|
+
readonly '/session/:sessionId/permissions': {
|
|
658
|
+
readonly POST: {
|
|
659
|
+
readonly command: "setPermissions";
|
|
660
|
+
readonly payloadParams: {
|
|
661
|
+
readonly required: readonly ["descriptor", "state"];
|
|
662
|
+
};
|
|
612
663
|
};
|
|
613
664
|
};
|
|
614
|
-
readonly '/session/:sessionId/
|
|
615
|
-
readonly
|
|
616
|
-
readonly command: "
|
|
665
|
+
readonly '/session/:sessionId/deviceposture': {
|
|
666
|
+
readonly POST: {
|
|
667
|
+
readonly command: "setDevicePosture";
|
|
668
|
+
readonly payloadParams: {
|
|
669
|
+
readonly required: readonly ["posture"];
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
readonly DELETE: {
|
|
673
|
+
readonly command: "clearDevicePosture";
|
|
617
674
|
};
|
|
618
675
|
};
|
|
619
|
-
readonly '/session/:sessionId/
|
|
676
|
+
readonly '/session/:sessionId/sensor': {
|
|
620
677
|
readonly POST: {
|
|
621
|
-
readonly command: "
|
|
678
|
+
readonly command: "createVirtualSensor";
|
|
622
679
|
readonly payloadParams: {
|
|
623
680
|
readonly required: readonly ["type"];
|
|
681
|
+
readonly optional: readonly ["connected", "maxSamplingFrequency", "minSamplingFrequency"];
|
|
624
682
|
};
|
|
625
683
|
};
|
|
626
684
|
};
|
|
627
|
-
readonly '/session/:sessionId/
|
|
685
|
+
readonly '/session/:sessionId/sensors/:sensorType': {
|
|
628
686
|
readonly GET: {
|
|
629
|
-
readonly command: "
|
|
687
|
+
readonly command: "getVirtualSensorInfo";
|
|
688
|
+
};
|
|
689
|
+
readonly POST: {
|
|
690
|
+
readonly command: "updateVirtualSensorReading";
|
|
691
|
+
readonly payloadParams: {
|
|
692
|
+
readonly required: readonly ["reading"];
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
readonly DELETE: {
|
|
696
|
+
readonly command: "deleteVirtualSensor";
|
|
630
697
|
};
|
|
631
698
|
};
|
|
632
|
-
readonly '/session/:sessionId
|
|
699
|
+
readonly '/session/:sessionId/custom-handlers/set-mode': {
|
|
633
700
|
readonly POST: {
|
|
634
|
-
readonly command: "
|
|
701
|
+
readonly command: "setRPHRegistrationMode";
|
|
635
702
|
readonly payloadParams: {
|
|
636
|
-
readonly required: readonly ["
|
|
703
|
+
readonly required: readonly ["mode"];
|
|
637
704
|
};
|
|
638
705
|
};
|
|
639
706
|
};
|
|
@@ -681,6 +748,83 @@ export const METHOD_MAP: {
|
|
|
681
748
|
};
|
|
682
749
|
};
|
|
683
750
|
};
|
|
751
|
+
readonly '/session/:sessionId/secure-payment-confirmation/set-mode': {
|
|
752
|
+
readonly POST: {
|
|
753
|
+
readonly command: "setSPCTransactionMode";
|
|
754
|
+
readonly payloadParams: {
|
|
755
|
+
readonly required: readonly ["mode"];
|
|
756
|
+
};
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
readonly '/session/:sessionId/fedcm/canceldialog': {
|
|
760
|
+
readonly POST: {
|
|
761
|
+
readonly command: "fedCMCancelDialog";
|
|
762
|
+
};
|
|
763
|
+
};
|
|
764
|
+
readonly '/session/:sessionId/fedcm/selectaccount': {
|
|
765
|
+
readonly POST: {
|
|
766
|
+
readonly command: "fedCMSelectAccount";
|
|
767
|
+
readonly payloadParams: {
|
|
768
|
+
readonly required: readonly ["accountIndex"];
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
};
|
|
772
|
+
readonly '/session/:sessionId/fedcm/clickdialogbutton': {
|
|
773
|
+
readonly POST: {
|
|
774
|
+
readonly command: "fedCMClickDialogButton";
|
|
775
|
+
readonly payloadParams: {
|
|
776
|
+
readonly required: readonly ["dialogButton"];
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
readonly '/session/:sessionId/fedcm/accountlist': {
|
|
781
|
+
readonly GET: {
|
|
782
|
+
readonly command: "fedCMGetAccounts";
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
readonly '/session/:sessionId/fedcm/gettitle': {
|
|
786
|
+
readonly GET: {
|
|
787
|
+
readonly command: "fedCMGetTitle";
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
readonly '/session/:sessionId/fedcm/getdialogtype': {
|
|
791
|
+
readonly GET: {
|
|
792
|
+
readonly command: "fedCMGetDialogType";
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
readonly '/session/:sessionId/fedcm/setdelayenabled': {
|
|
796
|
+
readonly POST: {
|
|
797
|
+
readonly command: "fedCMSetDelayEnabled";
|
|
798
|
+
readonly payloadParams: {
|
|
799
|
+
readonly required: readonly ["enabled"];
|
|
800
|
+
};
|
|
801
|
+
};
|
|
802
|
+
};
|
|
803
|
+
readonly '/session/:sessionId/fedcm/resetcooldown': {
|
|
804
|
+
readonly POST: {
|
|
805
|
+
readonly command: "fedCMResetCooldown";
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
readonly '/session/:sessionId/pressuresource': {
|
|
809
|
+
readonly POST: {
|
|
810
|
+
readonly command: "createVirtualPressureSource";
|
|
811
|
+
readonly payloadParams: {
|
|
812
|
+
readonly required: readonly ["type"];
|
|
813
|
+
readonly optional: readonly ["supported"];
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
};
|
|
817
|
+
readonly '/session/:sessionId/pressuresource/:pressureSourceType': {
|
|
818
|
+
readonly POST: {
|
|
819
|
+
readonly command: "updateVirtualPressureSource";
|
|
820
|
+
readonly payloadParams: {
|
|
821
|
+
readonly required: readonly ["sample"];
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
readonly DELETE: {
|
|
825
|
+
readonly command: "deleteVirtualPressureSource";
|
|
826
|
+
};
|
|
827
|
+
};
|
|
684
828
|
};
|
|
685
829
|
export const ALL_COMMANDS: any[];
|
|
686
830
|
export const NO_SESSION_ID_COMMANDS: string[];
|