@appium/base-driver 8.7.3 → 9.0.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 +11 -163
- package/build/lib/basedriver/capabilities.d.ts.map +1 -1
- package/build/lib/basedriver/capabilities.js +354 -236
- package/build/lib/basedriver/capabilities.js.map +1 -1
- package/build/lib/basedriver/commands/event.d.ts +7 -6
- package/build/lib/basedriver/commands/event.d.ts.map +1 -1
- package/build/lib/basedriver/commands/event.js +55 -35
- package/build/lib/basedriver/commands/event.js.map +1 -1
- package/build/lib/basedriver/commands/execute.d.ts +7 -6
- package/build/lib/basedriver/commands/execute.d.ts.map +1 -1
- package/build/lib/basedriver/commands/execute.js +66 -58
- package/build/lib/basedriver/commands/execute.js.map +1 -1
- package/build/lib/basedriver/commands/find.d.ts +9 -7
- package/build/lib/basedriver/commands/find.d.ts.map +1 -1
- package/build/lib/basedriver/commands/find.js +102 -54
- package/build/lib/basedriver/commands/find.js.map +1 -1
- package/build/lib/basedriver/commands/index.d.ts +3 -7
- package/build/lib/basedriver/commands/index.d.ts.map +1 -1
- package/build/lib/basedriver/commands/index.js +30 -33
- package/build/lib/basedriver/commands/index.js.map +1 -1
- package/build/lib/basedriver/commands/log.d.ts +8 -9
- package/build/lib/basedriver/commands/log.d.ts.map +1 -1
- package/build/lib/basedriver/commands/log.js +54 -38
- package/build/lib/basedriver/commands/log.js.map +1 -1
- package/build/lib/basedriver/commands/session.d.ts +7 -6
- package/build/lib/basedriver/commands/session.d.ts.map +1 -1
- package/build/lib/basedriver/commands/session.js +46 -39
- package/build/lib/basedriver/commands/session.js.map +1 -1
- package/build/lib/basedriver/commands/settings.d.ts +7 -7
- package/build/lib/basedriver/commands/settings.d.ts.map +1 -1
- package/build/lib/basedriver/commands/settings.js +35 -28
- package/build/lib/basedriver/commands/settings.js.map +1 -1
- package/build/lib/basedriver/commands/timeout.d.ts +7 -5
- package/build/lib/basedriver/commands/timeout.d.ts.map +1 -1
- package/build/lib/basedriver/commands/timeout.js +144 -162
- package/build/lib/basedriver/commands/timeout.js.map +1 -1
- package/build/lib/basedriver/core.d.ts +6 -157
- package/build/lib/basedriver/core.d.ts.map +1 -1
- package/build/lib/basedriver/core.js +361 -230
- package/build/lib/basedriver/core.js.map +1 -1
- package/build/lib/basedriver/desired-caps.js +80 -110
- package/build/lib/basedriver/desired-caps.js.map +1 -1
- package/build/lib/basedriver/device-settings.js +57 -62
- package/build/lib/basedriver/device-settings.js.map +1 -1
- package/build/lib/basedriver/driver.d.ts +11 -262
- package/build/lib/basedriver/driver.d.ts.map +1 -1
- package/build/lib/basedriver/driver.js +362 -262
- package/build/lib/basedriver/driver.js.map +1 -1
- package/build/lib/basedriver/helpers.js +500 -495
- package/build/lib/basedriver/helpers.js.map +1 -1
- package/build/lib/basedriver/logger.d.ts +1 -1
- package/build/lib/basedriver/logger.d.ts.map +1 -1
- package/build/lib/basedriver/logger.js +5 -15
- package/build/lib/basedriver/logger.js.map +1 -1
- package/build/lib/constants.js +14 -14
- package/build/lib/constants.js.map +1 -1
- package/build/lib/express/crash.js +8 -15
- package/build/lib/express/crash.js.map +1 -1
- package/build/lib/express/express-logging.js +49 -59
- package/build/lib/express/express-logging.js.map +1 -1
- package/build/lib/express/idempotency.js +125 -177
- package/build/lib/express/idempotency.js.map +1 -1
- package/build/lib/express/logger.d.ts +1 -1
- package/build/lib/express/logger.d.ts.map +1 -1
- package/build/lib/express/logger.js +5 -15
- package/build/lib/express/logger.js.map +1 -1
- package/build/lib/express/middleware.js +82 -107
- package/build/lib/express/middleware.js.map +1 -1
- package/build/lib/express/server.d.ts +17 -5
- package/build/lib/express/server.d.ts.map +1 -1
- package/build/lib/express/server.js +259 -224
- package/build/lib/express/server.js.map +1 -1
- package/build/lib/express/static.js +64 -81
- package/build/lib/express/static.js.map +1 -1
- package/build/lib/express/websocket.js +115 -87
- package/build/lib/express/websocket.js.map +1 -1
- package/build/lib/helpers/capabilities.d.ts +1 -59
- package/build/lib/helpers/capabilities.d.ts.map +1 -1
- package/build/lib/helpers/capabilities.js +72 -69
- package/build/lib/helpers/capabilities.js.map +1 -1
- package/build/lib/index.js +64 -180
- package/build/lib/index.js.map +1 -1
- package/build/lib/jsonwp-proxy/protocol-converter.js +215 -227
- package/build/lib/jsonwp-proxy/protocol-converter.js.map +1 -1
- package/build/lib/jsonwp-proxy/proxy.d.ts.map +1 -1
- package/build/lib/jsonwp-proxy/proxy.js +355 -393
- package/build/lib/jsonwp-proxy/proxy.js.map +1 -1
- package/build/lib/jsonwp-status/status.js +119 -130
- package/build/lib/jsonwp-status/status.js.map +1 -1
- package/build/lib/protocol/errors.d.ts +135 -32
- package/build/lib/protocol/errors.d.ts.map +1 -1
- package/build/lib/protocol/errors.js +871 -919
- package/build/lib/protocol/errors.js.map +1 -1
- package/build/lib/protocol/helpers.js +37 -37
- package/build/lib/protocol/helpers.js.map +1 -1
- package/build/lib/protocol/index.js +22 -109
- package/build/lib/protocol/index.js.map +1 -1
- package/build/lib/protocol/protocol.js +394 -350
- package/build/lib/protocol/protocol.js.map +1 -1
- package/build/lib/protocol/routes.d.ts +1238 -4
- package/build/lib/protocol/routes.d.ts.map +1 -1
- package/build/lib/protocol/routes.js +964 -1327
- package/build/lib/protocol/routes.js.map +1 -1
- package/build/lib/protocol/validators.js +32 -39
- package/build/lib/protocol/validators.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/basedriver/capabilities.js +80 -39
- package/lib/basedriver/commands/event.js +10 -5
- package/lib/basedriver/commands/execute.js +14 -9
- package/lib/basedriver/commands/find.js +18 -12
- package/lib/basedriver/commands/index.js +21 -16
- package/lib/basedriver/commands/log.js +24 -18
- package/lib/basedriver/commands/session.js +10 -5
- package/lib/basedriver/commands/settings.js +9 -6
- package/lib/basedriver/commands/timeout.js +10 -4
- package/lib/basedriver/core.js +2 -3
- package/lib/basedriver/driver.js +12 -16
- package/lib/express/server.js +6 -3
- package/lib/protocol/errors.js +155 -44
- package/lib/protocol/routes.js +11 -7
- package/package.json +14 -16
|
@@ -1,12 +1,1246 @@
|
|
|
1
|
-
export type Driver = import('@appium/types').Driver;
|
|
2
|
-
export type MethodMap = import('@appium/types').MethodMap;
|
|
3
1
|
/**
|
|
4
2
|
* define the routes, mapping of HTTP methods to particular driver commands, and
|
|
5
3
|
* any parameters that are expected in a request parameters can be `required` or
|
|
6
4
|
* `optional`
|
|
7
|
-
* @type {MethodMap}
|
|
8
5
|
*/
|
|
9
|
-
export const METHOD_MAP:
|
|
6
|
+
export const METHOD_MAP: {
|
|
7
|
+
readonly '/status': {
|
|
8
|
+
readonly GET: {
|
|
9
|
+
readonly command: "getStatus";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
readonly '/session': {
|
|
13
|
+
readonly POST: {
|
|
14
|
+
readonly command: "createSession";
|
|
15
|
+
readonly payloadParams: {
|
|
16
|
+
readonly validate: (jsonObj: any) => false | "we require one of \"desiredCapabilities\" or \"capabilities\" object";
|
|
17
|
+
readonly optional: readonly ["desiredCapabilities", "requiredCapabilities", "capabilities"];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
readonly '/sessions': {
|
|
22
|
+
readonly GET: {
|
|
23
|
+
readonly command: "getSessions";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
readonly '/session/:sessionId': {
|
|
27
|
+
readonly GET: {
|
|
28
|
+
readonly command: "getSession";
|
|
29
|
+
};
|
|
30
|
+
readonly DELETE: {
|
|
31
|
+
readonly command: "deleteSession";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly '/session/:sessionId/timeouts': {
|
|
35
|
+
readonly GET: {
|
|
36
|
+
readonly command: "getTimeouts";
|
|
37
|
+
};
|
|
38
|
+
readonly POST: {
|
|
39
|
+
readonly command: "timeouts";
|
|
40
|
+
readonly payloadParams: {
|
|
41
|
+
readonly validate: (jsonObj: any, protocolName: any) => "W3C protocol expects any of script, pageLoad or implicit to be set" | "MJSONWP protocol requires type and ms" | undefined;
|
|
42
|
+
readonly optional: readonly ["type", "ms", "script", "pageLoad", "implicit"];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
readonly '/session/:sessionId/timeouts/async_script': {
|
|
47
|
+
readonly POST: {
|
|
48
|
+
readonly command: "asyncScriptTimeout";
|
|
49
|
+
readonly payloadParams: {
|
|
50
|
+
readonly required: readonly ["ms"];
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
readonly '/session/:sessionId/timeouts/implicit_wait': {
|
|
55
|
+
readonly POST: {
|
|
56
|
+
readonly command: "implicitWait";
|
|
57
|
+
readonly payloadParams: {
|
|
58
|
+
readonly required: readonly ["ms"];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
readonly '/session/:sessionId/window_handle': {
|
|
63
|
+
readonly GET: {
|
|
64
|
+
readonly command: "getWindowHandle";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
readonly '/session/:sessionId/window/handle': {
|
|
68
|
+
readonly GET: {
|
|
69
|
+
readonly command: "getWindowHandle";
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
readonly '/session/:sessionId/window_handles': {
|
|
73
|
+
readonly GET: {
|
|
74
|
+
readonly command: "getWindowHandles";
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
readonly '/session/:sessionId/window/handles': {
|
|
78
|
+
readonly GET: {
|
|
79
|
+
readonly command: "getWindowHandles";
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
readonly '/session/:sessionId/url': {
|
|
83
|
+
readonly GET: {
|
|
84
|
+
readonly command: "getUrl";
|
|
85
|
+
};
|
|
86
|
+
readonly POST: {
|
|
87
|
+
readonly command: "setUrl";
|
|
88
|
+
readonly payloadParams: {
|
|
89
|
+
readonly required: readonly ["url"];
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
readonly '/session/:sessionId/forward': {
|
|
94
|
+
readonly POST: {
|
|
95
|
+
readonly command: "forward";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
readonly '/session/:sessionId/back': {
|
|
99
|
+
readonly POST: {
|
|
100
|
+
readonly command: "back";
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
readonly '/session/:sessionId/refresh': {
|
|
104
|
+
readonly POST: {
|
|
105
|
+
readonly command: "refresh";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
readonly '/session/:sessionId/execute': {
|
|
109
|
+
readonly POST: {
|
|
110
|
+
readonly command: "execute";
|
|
111
|
+
readonly payloadParams: {
|
|
112
|
+
readonly required: readonly ["script", "args"];
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
readonly '/session/:sessionId/execute_async': {
|
|
117
|
+
readonly POST: {
|
|
118
|
+
readonly command: "executeAsync";
|
|
119
|
+
readonly payloadParams: {
|
|
120
|
+
readonly required: readonly ["script", "args"];
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
readonly '/session/:sessionId/screenshot': {
|
|
125
|
+
readonly GET: {
|
|
126
|
+
readonly command: "getScreenshot";
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
readonly '/session/:sessionId/ime/available_engines': {
|
|
130
|
+
readonly GET: {
|
|
131
|
+
readonly command: "availableIMEEngines";
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
readonly '/session/:sessionId/ime/active_engine': {
|
|
135
|
+
readonly GET: {
|
|
136
|
+
readonly command: "getActiveIMEEngine";
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
readonly '/session/:sessionId/ime/activated': {
|
|
140
|
+
readonly GET: {
|
|
141
|
+
readonly command: "isIMEActivated";
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
readonly '/session/:sessionId/ime/deactivate': {
|
|
145
|
+
readonly POST: {
|
|
146
|
+
readonly command: "deactivateIMEEngine";
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
readonly '/session/:sessionId/ime/activate': {
|
|
150
|
+
readonly POST: {
|
|
151
|
+
readonly command: "activateIMEEngine";
|
|
152
|
+
readonly payloadParams: {
|
|
153
|
+
readonly required: readonly ["engine"];
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly '/session/:sessionId/frame': {
|
|
158
|
+
readonly POST: {
|
|
159
|
+
readonly command: "setFrame";
|
|
160
|
+
readonly payloadParams: {
|
|
161
|
+
readonly required: readonly ["id"];
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
readonly '/session/:sessionId/frame/parent': {
|
|
166
|
+
readonly POST: {};
|
|
167
|
+
};
|
|
168
|
+
readonly '/session/:sessionId/window': {
|
|
169
|
+
readonly GET: {
|
|
170
|
+
readonly command: "getWindowHandle";
|
|
171
|
+
};
|
|
172
|
+
readonly POST: {
|
|
173
|
+
readonly command: "setWindow";
|
|
174
|
+
readonly payloadParams: {
|
|
175
|
+
readonly optional: readonly ["name", "handle"];
|
|
176
|
+
readonly makeArgs: (jsonObj: any) => any[];
|
|
177
|
+
readonly validate: (jsonObj: any) => false | "we require one of \"name\" or \"handle\" to be set";
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
readonly DELETE: {
|
|
181
|
+
readonly command: "closeWindow";
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
readonly '/session/:sessionId/window/:windowhandle/size': {
|
|
185
|
+
readonly GET: {
|
|
186
|
+
readonly command: "getWindowSize";
|
|
187
|
+
};
|
|
188
|
+
readonly POST: {};
|
|
189
|
+
};
|
|
190
|
+
readonly '/session/:sessionId/window/:windowhandle/position': {
|
|
191
|
+
readonly POST: {};
|
|
192
|
+
readonly GET: {};
|
|
193
|
+
};
|
|
194
|
+
readonly '/session/:sessionId/window/:windowhandle/maximize': {
|
|
195
|
+
readonly POST: {
|
|
196
|
+
readonly command: "maximizeWindow";
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
readonly '/session/:sessionId/cookie': {
|
|
200
|
+
readonly GET: {
|
|
201
|
+
readonly command: "getCookies";
|
|
202
|
+
};
|
|
203
|
+
readonly POST: {
|
|
204
|
+
readonly command: "setCookie";
|
|
205
|
+
readonly payloadParams: {
|
|
206
|
+
readonly required: readonly ["cookie"];
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
readonly DELETE: {
|
|
210
|
+
readonly command: "deleteCookies";
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
readonly '/session/:sessionId/cookie/:name': {
|
|
214
|
+
readonly GET: {
|
|
215
|
+
readonly command: "getCookie";
|
|
216
|
+
};
|
|
217
|
+
readonly DELETE: {
|
|
218
|
+
readonly command: "deleteCookie";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly '/session/:sessionId/source': {
|
|
222
|
+
readonly GET: {
|
|
223
|
+
readonly command: "getPageSource";
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
readonly '/session/:sessionId/title': {
|
|
227
|
+
readonly GET: {
|
|
228
|
+
readonly command: "title";
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
readonly '/session/:sessionId/element': {
|
|
232
|
+
readonly POST: {
|
|
233
|
+
readonly command: "findElement";
|
|
234
|
+
readonly payloadParams: {
|
|
235
|
+
readonly required: readonly ["using", "value"];
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
readonly '/session/:sessionId/elements': {
|
|
240
|
+
readonly POST: {
|
|
241
|
+
readonly command: "findElements";
|
|
242
|
+
readonly payloadParams: {
|
|
243
|
+
readonly required: readonly ["using", "value"];
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
readonly '/session/:sessionId/element/active': {
|
|
248
|
+
readonly GET: {
|
|
249
|
+
readonly command: "active";
|
|
250
|
+
};
|
|
251
|
+
readonly POST: {
|
|
252
|
+
readonly command: "active";
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
readonly '/session/:sessionId/element/:elementId': {
|
|
256
|
+
readonly GET: {};
|
|
257
|
+
};
|
|
258
|
+
readonly '/session/:sessionId/element/:elementId/element': {
|
|
259
|
+
readonly POST: {
|
|
260
|
+
readonly command: "findElementFromElement";
|
|
261
|
+
readonly payloadParams: {
|
|
262
|
+
readonly required: readonly ["using", "value"];
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
readonly '/session/:sessionId/element/:elementId/elements': {
|
|
267
|
+
readonly POST: {
|
|
268
|
+
readonly command: "findElementsFromElement";
|
|
269
|
+
readonly payloadParams: {
|
|
270
|
+
readonly required: readonly ["using", "value"];
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
readonly '/session/:sessionId/element/:elementId/click': {
|
|
275
|
+
readonly POST: {
|
|
276
|
+
readonly command: "click";
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
readonly '/session/:sessionId/element/:elementId/submit': {
|
|
280
|
+
readonly POST: {
|
|
281
|
+
readonly command: "submit";
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
readonly '/session/:sessionId/element/:elementId/text': {
|
|
285
|
+
readonly GET: {
|
|
286
|
+
readonly command: "getText";
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
readonly '/session/:sessionId/element/:elementId/value': {
|
|
290
|
+
readonly POST: {
|
|
291
|
+
readonly command: "setValue";
|
|
292
|
+
readonly payloadParams: {
|
|
293
|
+
readonly validate: (jsonObj: any) => false | "we require one of \"text\" or \"value\" params";
|
|
294
|
+
readonly optional: readonly ["value", "text"];
|
|
295
|
+
readonly makeArgs: (jsonObj: any) => any[];
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
readonly '/session/:sessionId/keys': {
|
|
300
|
+
readonly POST: {
|
|
301
|
+
readonly command: "keys";
|
|
302
|
+
readonly payloadParams: {
|
|
303
|
+
readonly required: readonly ["value"];
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
readonly '/session/:sessionId/element/:elementId/name': {
|
|
308
|
+
readonly GET: {
|
|
309
|
+
readonly command: "getName";
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
readonly '/session/:sessionId/element/:elementId/clear': {
|
|
313
|
+
readonly POST: {
|
|
314
|
+
readonly command: "clear";
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
readonly '/session/:sessionId/element/:elementId/selected': {
|
|
318
|
+
readonly GET: {
|
|
319
|
+
readonly command: "elementSelected";
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
readonly '/session/:sessionId/element/:elementId/enabled': {
|
|
323
|
+
readonly GET: {
|
|
324
|
+
readonly command: "elementEnabled";
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
readonly '/session/:sessionId/element/:elementId/attribute/:name': {
|
|
328
|
+
readonly GET: {
|
|
329
|
+
readonly command: "getAttribute";
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
readonly '/session/:sessionId/element/:elementId/equals/:otherId': {
|
|
333
|
+
readonly GET: {
|
|
334
|
+
readonly command: "equalsElement";
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
readonly '/session/:sessionId/element/:elementId/displayed': {
|
|
338
|
+
readonly GET: {
|
|
339
|
+
readonly command: "elementDisplayed";
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
readonly '/session/:sessionId/element/:elementId/location': {
|
|
343
|
+
readonly GET: {
|
|
344
|
+
readonly command: "getLocation";
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
readonly '/session/:sessionId/element/:elementId/location_in_view': {
|
|
348
|
+
readonly GET: {
|
|
349
|
+
readonly command: "getLocationInView";
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly '/session/:sessionId/element/:elementId/size': {
|
|
353
|
+
readonly GET: {
|
|
354
|
+
readonly command: "getSize";
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
readonly '/session/:sessionId/element/:elementId/shadow': {
|
|
358
|
+
readonly GET: {
|
|
359
|
+
readonly command: "elementShadowRoot";
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
readonly '/session/:sessionId/shadow/:shadowId/element': {
|
|
363
|
+
readonly POST: {
|
|
364
|
+
readonly command: "findElementFromShadowRoot";
|
|
365
|
+
readonly payloadParams: {
|
|
366
|
+
readonly required: readonly ["using", "value"];
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
readonly '/session/:sessionId/shadow/:shadowId/elements': {
|
|
371
|
+
readonly POST: {
|
|
372
|
+
readonly command: "findElementsFromShadowRoot";
|
|
373
|
+
readonly payloadParams: {
|
|
374
|
+
readonly required: readonly ["using", "value"];
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
readonly '/session/:sessionId/element/:elementId/css/:propertyName': {
|
|
379
|
+
readonly GET: {
|
|
380
|
+
readonly command: "getCssProperty";
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
readonly '/session/:sessionId/orientation': {
|
|
384
|
+
readonly GET: {
|
|
385
|
+
readonly command: "getOrientation";
|
|
386
|
+
};
|
|
387
|
+
readonly POST: {
|
|
388
|
+
readonly command: "setOrientation";
|
|
389
|
+
readonly payloadParams: {
|
|
390
|
+
readonly required: readonly ["orientation"];
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
readonly '/session/:sessionId/rotation': {
|
|
395
|
+
readonly GET: {
|
|
396
|
+
readonly command: "getRotation";
|
|
397
|
+
};
|
|
398
|
+
readonly POST: {
|
|
399
|
+
readonly command: "setRotation";
|
|
400
|
+
readonly payloadParams: {
|
|
401
|
+
readonly required: readonly ["x", "y", "z"];
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
readonly '/session/:sessionId/moveto': {
|
|
406
|
+
readonly POST: {
|
|
407
|
+
readonly command: "moveTo";
|
|
408
|
+
readonly payloadParams: {
|
|
409
|
+
readonly optional: readonly ["element", "xoffset", "yoffset"];
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
readonly '/session/:sessionId/click': {
|
|
414
|
+
readonly POST: {
|
|
415
|
+
readonly command: "clickCurrent";
|
|
416
|
+
readonly payloadParams: {
|
|
417
|
+
readonly optional: readonly ["button"];
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
readonly '/session/:sessionId/buttondown': {
|
|
422
|
+
readonly POST: {
|
|
423
|
+
readonly command: "buttonDown";
|
|
424
|
+
readonly payloadParams: {
|
|
425
|
+
readonly optional: readonly ["button"];
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
readonly '/session/:sessionId/buttonup': {
|
|
430
|
+
readonly POST: {
|
|
431
|
+
readonly command: "buttonUp";
|
|
432
|
+
readonly payloadParams: {
|
|
433
|
+
readonly optional: readonly ["button"];
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
readonly '/session/:sessionId/doubleclick': {
|
|
438
|
+
readonly POST: {
|
|
439
|
+
readonly command: "doubleClick";
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
readonly '/session/:sessionId/touch/click': {
|
|
443
|
+
readonly POST: {
|
|
444
|
+
readonly command: "click";
|
|
445
|
+
readonly payloadParams: {
|
|
446
|
+
readonly required: readonly ["element"];
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
readonly '/session/:sessionId/touch/down': {
|
|
451
|
+
readonly POST: {
|
|
452
|
+
readonly command: "touchDown";
|
|
453
|
+
readonly payloadParams: {
|
|
454
|
+
readonly required: readonly ["x", "y"];
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
readonly '/session/:sessionId/touch/up': {
|
|
459
|
+
readonly POST: {
|
|
460
|
+
readonly command: "touchUp";
|
|
461
|
+
readonly payloadParams: {
|
|
462
|
+
readonly required: readonly ["x", "y"];
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
readonly '/session/:sessionId/touch/move': {
|
|
467
|
+
readonly POST: {
|
|
468
|
+
readonly command: "touchMove";
|
|
469
|
+
readonly payloadParams: {
|
|
470
|
+
readonly required: readonly ["x", "y"];
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
readonly '/session/:sessionId/touch/scroll': {
|
|
475
|
+
readonly POST: {};
|
|
476
|
+
};
|
|
477
|
+
readonly '/session/:sessionId/touch/doubleclick': {
|
|
478
|
+
readonly POST: {};
|
|
479
|
+
};
|
|
480
|
+
readonly '/session/:sessionId/actions': {
|
|
481
|
+
readonly POST: {
|
|
482
|
+
readonly command: "performActions";
|
|
483
|
+
readonly payloadParams: {
|
|
484
|
+
readonly required: readonly ["actions"];
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
readonly DELETE: {
|
|
488
|
+
readonly command: "releaseActions";
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
readonly '/session/:sessionId/touch/longclick': {
|
|
492
|
+
readonly POST: {
|
|
493
|
+
readonly command: "touchLongClick";
|
|
494
|
+
readonly payloadParams: {
|
|
495
|
+
readonly required: readonly ["elements"];
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
readonly '/session/:sessionId/touch/flick': {
|
|
500
|
+
readonly POST: {
|
|
501
|
+
readonly command: "flick";
|
|
502
|
+
readonly payloadParams: {
|
|
503
|
+
readonly optional: readonly ["element", "xspeed", "yspeed", "xoffset", "yoffset", "speed"];
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
readonly '/session/:sessionId/location': {
|
|
508
|
+
readonly GET: {
|
|
509
|
+
readonly command: "getGeoLocation";
|
|
510
|
+
};
|
|
511
|
+
readonly POST: {
|
|
512
|
+
readonly command: "setGeoLocation";
|
|
513
|
+
readonly payloadParams: {
|
|
514
|
+
readonly required: readonly ["location"];
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
readonly '/session/:sessionId/local_storage': {
|
|
519
|
+
readonly GET: {};
|
|
520
|
+
readonly POST: {};
|
|
521
|
+
readonly DELETE: {};
|
|
522
|
+
};
|
|
523
|
+
readonly '/session/:sessionId/local_storage/key/:key': {
|
|
524
|
+
readonly GET: {};
|
|
525
|
+
readonly DELETE: {};
|
|
526
|
+
};
|
|
527
|
+
readonly '/session/:sessionId/local_storage/size': {
|
|
528
|
+
readonly GET: {};
|
|
529
|
+
};
|
|
530
|
+
readonly '/session/:sessionId/session_storage': {
|
|
531
|
+
readonly GET: {};
|
|
532
|
+
readonly POST: {};
|
|
533
|
+
readonly DELETE: {};
|
|
534
|
+
};
|
|
535
|
+
readonly '/session/:sessionId/session_storage/key/:key': {
|
|
536
|
+
readonly GET: {};
|
|
537
|
+
readonly DELETE: {};
|
|
538
|
+
};
|
|
539
|
+
readonly '/session/:sessionId/session_storage/size': {
|
|
540
|
+
readonly GET: {};
|
|
541
|
+
};
|
|
542
|
+
readonly '/session/:sessionId/se/log': {
|
|
543
|
+
readonly POST: {
|
|
544
|
+
readonly command: "getLog";
|
|
545
|
+
readonly payloadParams: {
|
|
546
|
+
readonly required: readonly ["type"];
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
readonly '/session/:sessionId/se/log/types': {
|
|
551
|
+
readonly GET: {
|
|
552
|
+
readonly command: "getLogTypes";
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
readonly '/session/:sessionId/log': {
|
|
556
|
+
readonly POST: {
|
|
557
|
+
readonly command: "getLog";
|
|
558
|
+
readonly payloadParams: {
|
|
559
|
+
readonly required: readonly ["type"];
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
readonly '/session/:sessionId/log/types': {
|
|
564
|
+
readonly GET: {
|
|
565
|
+
readonly command: "getLogTypes";
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
readonly '/session/:sessionId/application_cache/status': {
|
|
569
|
+
readonly GET: {};
|
|
570
|
+
};
|
|
571
|
+
readonly '/session/:sessionId/context': {
|
|
572
|
+
readonly GET: {
|
|
573
|
+
readonly command: "getCurrentContext";
|
|
574
|
+
};
|
|
575
|
+
readonly POST: {
|
|
576
|
+
readonly command: "setContext";
|
|
577
|
+
readonly payloadParams: {
|
|
578
|
+
readonly required: readonly ["name"];
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
readonly '/session/:sessionId/contexts': {
|
|
583
|
+
readonly GET: {
|
|
584
|
+
readonly command: "getContexts";
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
readonly '/session/:sessionId/element/:elementId/pageIndex': {
|
|
588
|
+
readonly GET: {
|
|
589
|
+
readonly command: "getPageIndex";
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
readonly '/session/:sessionId/network_connection': {
|
|
593
|
+
readonly GET: {
|
|
594
|
+
readonly command: "getNetworkConnection";
|
|
595
|
+
};
|
|
596
|
+
readonly POST: {
|
|
597
|
+
readonly command: "setNetworkConnection";
|
|
598
|
+
readonly payloadParams: {
|
|
599
|
+
readonly unwrap: "parameters";
|
|
600
|
+
readonly required: readonly ["type"];
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
readonly '/session/:sessionId/touch/perform': {
|
|
605
|
+
readonly POST: {
|
|
606
|
+
readonly command: "performTouch";
|
|
607
|
+
readonly payloadParams: {
|
|
608
|
+
readonly wrap: "actions";
|
|
609
|
+
readonly required: readonly ["actions"];
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
readonly '/session/:sessionId/touch/multi/perform': {
|
|
614
|
+
readonly POST: {
|
|
615
|
+
readonly command: "performMultiAction";
|
|
616
|
+
readonly payloadParams: {
|
|
617
|
+
readonly required: readonly ["actions"];
|
|
618
|
+
readonly optional: readonly ["elementId"];
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
readonly '/session/:sessionId/receive_async_response': {
|
|
623
|
+
readonly POST: {
|
|
624
|
+
readonly command: "receiveAsyncResponse";
|
|
625
|
+
readonly payloadParams: {
|
|
626
|
+
readonly required: readonly ["status", "value"];
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
readonly '/session/:sessionId/appium/device/shake': {
|
|
631
|
+
readonly POST: {
|
|
632
|
+
readonly command: "mobileShake";
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
readonly '/session/:sessionId/appium/device/system_time': {
|
|
636
|
+
readonly GET: {
|
|
637
|
+
readonly command: "getDeviceTime";
|
|
638
|
+
readonly payloadParams: {
|
|
639
|
+
readonly optional: readonly ["format"];
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
readonly POST: {
|
|
643
|
+
readonly command: "getDeviceTime";
|
|
644
|
+
readonly payloadParams: {
|
|
645
|
+
readonly optional: readonly ["format"];
|
|
646
|
+
};
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
readonly '/session/:sessionId/appium/device/lock': {
|
|
650
|
+
readonly POST: {
|
|
651
|
+
readonly command: "lock";
|
|
652
|
+
readonly payloadParams: {
|
|
653
|
+
readonly optional: readonly ["seconds"];
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
readonly '/session/:sessionId/appium/device/unlock': {
|
|
658
|
+
readonly POST: {
|
|
659
|
+
readonly command: "unlock";
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
readonly '/session/:sessionId/appium/device/is_locked': {
|
|
663
|
+
readonly POST: {
|
|
664
|
+
readonly command: "isLocked";
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
readonly '/session/:sessionId/appium/start_recording_screen': {
|
|
668
|
+
readonly POST: {
|
|
669
|
+
readonly command: "startRecordingScreen";
|
|
670
|
+
readonly payloadParams: {
|
|
671
|
+
readonly optional: readonly ["options"];
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
readonly '/session/:sessionId/appium/stop_recording_screen': {
|
|
676
|
+
readonly POST: {
|
|
677
|
+
readonly command: "stopRecordingScreen";
|
|
678
|
+
readonly payloadParams: {
|
|
679
|
+
readonly optional: readonly ["options"];
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
readonly '/session/:sessionId/appium/performanceData/types': {
|
|
684
|
+
readonly POST: {
|
|
685
|
+
readonly command: "getPerformanceDataTypes";
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
readonly '/session/:sessionId/appium/getPerformanceData': {
|
|
689
|
+
readonly POST: {
|
|
690
|
+
readonly command: "getPerformanceData";
|
|
691
|
+
readonly payloadParams: {
|
|
692
|
+
readonly required: readonly ["packageName", "dataType"];
|
|
693
|
+
readonly optional: readonly ["dataReadTimeout"];
|
|
694
|
+
};
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
readonly '/session/:sessionId/appium/device/press_keycode': {
|
|
698
|
+
readonly POST: {
|
|
699
|
+
readonly command: "pressKeyCode";
|
|
700
|
+
readonly payloadParams: {
|
|
701
|
+
readonly required: readonly ["keycode"];
|
|
702
|
+
readonly optional: readonly ["metastate", "flags"];
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
readonly '/session/:sessionId/appium/device/long_press_keycode': {
|
|
707
|
+
readonly POST: {
|
|
708
|
+
readonly command: "longPressKeyCode";
|
|
709
|
+
readonly payloadParams: {
|
|
710
|
+
readonly required: readonly ["keycode"];
|
|
711
|
+
readonly optional: readonly ["metastate", "flags"];
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
readonly '/session/:sessionId/appium/device/finger_print': {
|
|
716
|
+
readonly POST: {
|
|
717
|
+
readonly command: "fingerprint";
|
|
718
|
+
readonly payloadParams: {
|
|
719
|
+
readonly required: readonly ["fingerprintId"];
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
readonly '/session/:sessionId/appium/device/send_sms': {
|
|
724
|
+
readonly POST: {
|
|
725
|
+
readonly command: "sendSMS";
|
|
726
|
+
readonly payloadParams: {
|
|
727
|
+
readonly required: readonly ["phoneNumber", "message"];
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
readonly '/session/:sessionId/appium/device/gsm_call': {
|
|
732
|
+
readonly POST: {
|
|
733
|
+
readonly command: "gsmCall";
|
|
734
|
+
readonly payloadParams: {
|
|
735
|
+
readonly required: readonly ["phoneNumber", "action"];
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
readonly '/session/:sessionId/appium/device/gsm_signal': {
|
|
740
|
+
readonly POST: {
|
|
741
|
+
readonly command: "gsmSignal";
|
|
742
|
+
readonly payloadParams: {
|
|
743
|
+
readonly validate: (jsonObj: any) => false | "we require one of \"signalStrength\" or \"signalStrengh\" params";
|
|
744
|
+
readonly optional: readonly ["signalStrength", "signalStrengh"];
|
|
745
|
+
readonly makeArgs: (jsonObj: any) => any[];
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
readonly '/session/:sessionId/appium/device/gsm_voice': {
|
|
750
|
+
readonly POST: {
|
|
751
|
+
readonly command: "gsmVoice";
|
|
752
|
+
readonly payloadParams: {
|
|
753
|
+
readonly required: readonly ["state"];
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
readonly '/session/:sessionId/appium/device/power_capacity': {
|
|
758
|
+
readonly POST: {
|
|
759
|
+
readonly command: "powerCapacity";
|
|
760
|
+
readonly payloadParams: {
|
|
761
|
+
readonly required: readonly ["percent"];
|
|
762
|
+
};
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
readonly '/session/:sessionId/appium/device/power_ac': {
|
|
766
|
+
readonly POST: {
|
|
767
|
+
readonly command: "powerAC";
|
|
768
|
+
readonly payloadParams: {
|
|
769
|
+
readonly required: readonly ["state"];
|
|
770
|
+
};
|
|
771
|
+
};
|
|
772
|
+
};
|
|
773
|
+
readonly '/session/:sessionId/appium/device/network_speed': {
|
|
774
|
+
readonly POST: {
|
|
775
|
+
readonly command: "networkSpeed";
|
|
776
|
+
readonly payloadParams: {
|
|
777
|
+
readonly required: readonly ["netspeed"];
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
readonly '/session/:sessionId/appium/device/keyevent': {
|
|
782
|
+
readonly POST: {
|
|
783
|
+
readonly command: "keyevent";
|
|
784
|
+
readonly payloadParams: {
|
|
785
|
+
readonly required: readonly ["keycode"];
|
|
786
|
+
readonly optional: readonly ["metastate"];
|
|
787
|
+
};
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
readonly '/session/:sessionId/appium/device/rotate': {
|
|
791
|
+
readonly POST: {
|
|
792
|
+
readonly command: "mobileRotation";
|
|
793
|
+
readonly payloadParams: {
|
|
794
|
+
readonly required: readonly ["x", "y", "radius", "rotation", "touchCount", "duration"];
|
|
795
|
+
readonly optional: readonly ["element"];
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
readonly '/session/:sessionId/appium/device/current_activity': {
|
|
800
|
+
readonly GET: {
|
|
801
|
+
readonly command: "getCurrentActivity";
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
readonly '/session/:sessionId/appium/device/current_package': {
|
|
805
|
+
readonly GET: {
|
|
806
|
+
readonly command: "getCurrentPackage";
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
readonly '/session/:sessionId/appium/device/install_app': {
|
|
810
|
+
readonly POST: {
|
|
811
|
+
readonly command: "installApp";
|
|
812
|
+
readonly payloadParams: {
|
|
813
|
+
readonly required: readonly ["appPath"];
|
|
814
|
+
readonly optional: readonly ["options"];
|
|
815
|
+
};
|
|
816
|
+
};
|
|
817
|
+
};
|
|
818
|
+
readonly '/session/:sessionId/appium/device/activate_app': {
|
|
819
|
+
readonly POST: {
|
|
820
|
+
readonly command: "activateApp";
|
|
821
|
+
readonly payloadParams: {
|
|
822
|
+
readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
|
|
823
|
+
readonly optional: readonly ["options"];
|
|
824
|
+
};
|
|
825
|
+
};
|
|
826
|
+
};
|
|
827
|
+
readonly '/session/:sessionId/appium/device/remove_app': {
|
|
828
|
+
readonly POST: {
|
|
829
|
+
readonly command: "removeApp";
|
|
830
|
+
readonly payloadParams: {
|
|
831
|
+
readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
|
|
832
|
+
readonly optional: readonly ["options"];
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
readonly '/session/:sessionId/appium/device/terminate_app': {
|
|
837
|
+
readonly POST: {
|
|
838
|
+
readonly command: "terminateApp";
|
|
839
|
+
readonly payloadParams: {
|
|
840
|
+
readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
|
|
841
|
+
readonly optional: readonly ["options"];
|
|
842
|
+
};
|
|
843
|
+
};
|
|
844
|
+
};
|
|
845
|
+
readonly '/session/:sessionId/appium/device/app_installed': {
|
|
846
|
+
readonly POST: {
|
|
847
|
+
readonly command: "isAppInstalled";
|
|
848
|
+
readonly payloadParams: {
|
|
849
|
+
readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
readonly '/session/:sessionId/appium/device/app_state': {
|
|
854
|
+
readonly GET: {
|
|
855
|
+
readonly command: "queryAppState";
|
|
856
|
+
readonly payloadParams: {
|
|
857
|
+
readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
readonly POST: {
|
|
861
|
+
readonly command: "queryAppState";
|
|
862
|
+
readonly payloadParams: {
|
|
863
|
+
readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
|
|
864
|
+
};
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
readonly '/session/:sessionId/appium/device/hide_keyboard': {
|
|
868
|
+
readonly POST: {
|
|
869
|
+
readonly command: "hideKeyboard";
|
|
870
|
+
readonly payloadParams: {
|
|
871
|
+
readonly optional: readonly ["strategy", "key", "keyCode", "keyName"];
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
readonly '/session/:sessionId/appium/device/is_keyboard_shown': {
|
|
876
|
+
readonly GET: {
|
|
877
|
+
readonly command: "isKeyboardShown";
|
|
878
|
+
};
|
|
879
|
+
};
|
|
880
|
+
readonly '/session/:sessionId/appium/device/push_file': {
|
|
881
|
+
readonly POST: {
|
|
882
|
+
readonly command: "pushFile";
|
|
883
|
+
readonly payloadParams: {
|
|
884
|
+
readonly required: readonly ["path", "data"];
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
readonly '/session/:sessionId/appium/device/pull_file': {
|
|
889
|
+
readonly POST: {
|
|
890
|
+
readonly command: "pullFile";
|
|
891
|
+
readonly payloadParams: {
|
|
892
|
+
readonly required: readonly ["path"];
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
readonly '/session/:sessionId/appium/device/pull_folder': {
|
|
897
|
+
readonly POST: {
|
|
898
|
+
readonly command: "pullFolder";
|
|
899
|
+
readonly payloadParams: {
|
|
900
|
+
readonly required: readonly ["path"];
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
readonly '/session/:sessionId/appium/device/toggle_airplane_mode': {
|
|
905
|
+
readonly POST: {
|
|
906
|
+
readonly command: "toggleFlightMode";
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
readonly '/session/:sessionId/appium/device/toggle_data': {
|
|
910
|
+
readonly POST: {
|
|
911
|
+
readonly command: "toggleData";
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
readonly '/session/:sessionId/appium/device/toggle_wifi': {
|
|
915
|
+
readonly POST: {
|
|
916
|
+
readonly command: "toggleWiFi";
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
readonly '/session/:sessionId/appium/device/toggle_location_services': {
|
|
920
|
+
readonly POST: {
|
|
921
|
+
readonly command: "toggleLocationServices";
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
readonly '/session/:sessionId/appium/device/open_notifications': {
|
|
925
|
+
readonly POST: {
|
|
926
|
+
readonly command: "openNotifications";
|
|
927
|
+
};
|
|
928
|
+
};
|
|
929
|
+
readonly '/session/:sessionId/appium/device/start_activity': {
|
|
930
|
+
readonly POST: {
|
|
931
|
+
readonly command: "startActivity";
|
|
932
|
+
readonly payloadParams: {
|
|
933
|
+
readonly required: readonly ["appPackage", "appActivity"];
|
|
934
|
+
readonly optional: readonly ["appWaitPackage", "appWaitActivity", "intentAction", "intentCategory", "intentFlags", "optionalIntentArguments", "dontStopAppOnReset"];
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
readonly '/session/:sessionId/appium/device/system_bars': {
|
|
939
|
+
readonly GET: {
|
|
940
|
+
readonly command: "getSystemBars";
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
readonly '/session/:sessionId/appium/device/display_density': {
|
|
944
|
+
readonly GET: {
|
|
945
|
+
readonly command: "getDisplayDensity";
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
readonly '/session/:sessionId/appium/simulator/touch_id': {
|
|
949
|
+
readonly POST: {
|
|
950
|
+
readonly command: "touchId";
|
|
951
|
+
readonly payloadParams: {
|
|
952
|
+
readonly required: readonly ["match"];
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
};
|
|
956
|
+
readonly '/session/:sessionId/appium/simulator/toggle_touch_id_enrollment': {
|
|
957
|
+
readonly POST: {
|
|
958
|
+
readonly command: "toggleEnrollTouchId";
|
|
959
|
+
readonly payloadParams: {
|
|
960
|
+
readonly optional: readonly ["enabled"];
|
|
961
|
+
};
|
|
962
|
+
};
|
|
963
|
+
};
|
|
964
|
+
readonly '/session/:sessionId/appium/app/launch': {
|
|
965
|
+
readonly POST: {
|
|
966
|
+
readonly command: "launchApp";
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
readonly '/session/:sessionId/appium/app/close': {
|
|
970
|
+
readonly POST: {
|
|
971
|
+
readonly command: "closeApp";
|
|
972
|
+
};
|
|
973
|
+
};
|
|
974
|
+
readonly '/session/:sessionId/appium/app/reset': {
|
|
975
|
+
readonly POST: {
|
|
976
|
+
readonly command: "reset";
|
|
977
|
+
};
|
|
978
|
+
};
|
|
979
|
+
readonly '/session/:sessionId/appium/app/background': {
|
|
980
|
+
readonly POST: {
|
|
981
|
+
readonly command: "background";
|
|
982
|
+
readonly payloadParams: {
|
|
983
|
+
readonly required: readonly ["seconds"];
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
};
|
|
987
|
+
readonly '/session/:sessionId/appium/app/end_test_coverage': {
|
|
988
|
+
readonly POST: {
|
|
989
|
+
readonly command: "endCoverage";
|
|
990
|
+
readonly payloadParams: {
|
|
991
|
+
readonly required: readonly ["intent", "path"];
|
|
992
|
+
};
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
readonly '/session/:sessionId/appium/app/strings': {
|
|
996
|
+
readonly POST: {
|
|
997
|
+
readonly command: "getStrings";
|
|
998
|
+
readonly payloadParams: {
|
|
999
|
+
readonly optional: readonly ["language", "stringFile"];
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
};
|
|
1003
|
+
readonly '/session/:sessionId/appium/element/:elementId/value': {
|
|
1004
|
+
readonly POST: {
|
|
1005
|
+
readonly command: "setValueImmediate";
|
|
1006
|
+
readonly payloadParams: {
|
|
1007
|
+
readonly validate: (jsonObj: any) => false | "we require one of \"text\" or \"value\" params";
|
|
1008
|
+
readonly optional: readonly ["value", "text"];
|
|
1009
|
+
readonly makeArgs: (jsonObj: any) => any[];
|
|
1010
|
+
};
|
|
1011
|
+
};
|
|
1012
|
+
};
|
|
1013
|
+
readonly '/session/:sessionId/appium/element/:elementId/replace_value': {
|
|
1014
|
+
readonly POST: {
|
|
1015
|
+
readonly command: "replaceValue";
|
|
1016
|
+
readonly payloadParams: {
|
|
1017
|
+
readonly validate: (jsonObj: any) => false | "we require one of \"text\" or \"value\" params";
|
|
1018
|
+
readonly optional: readonly ["value", "text"];
|
|
1019
|
+
readonly makeArgs: (jsonObj: any) => any[];
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
};
|
|
1023
|
+
readonly '/session/:sessionId/appium/settings': {
|
|
1024
|
+
readonly POST: {
|
|
1025
|
+
readonly command: "updateSettings";
|
|
1026
|
+
readonly payloadParams: {
|
|
1027
|
+
readonly required: readonly ["settings"];
|
|
1028
|
+
};
|
|
1029
|
+
};
|
|
1030
|
+
readonly GET: {
|
|
1031
|
+
readonly command: "getSettings";
|
|
1032
|
+
};
|
|
1033
|
+
};
|
|
1034
|
+
readonly '/session/:sessionId/appium/receive_async_response': {
|
|
1035
|
+
readonly POST: {
|
|
1036
|
+
readonly command: "receiveAsyncResponse";
|
|
1037
|
+
readonly payloadParams: {
|
|
1038
|
+
readonly required: readonly ["response"];
|
|
1039
|
+
};
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
readonly '/session/:sessionId/appium/events': {
|
|
1043
|
+
readonly POST: {
|
|
1044
|
+
readonly command: "getLogEvents";
|
|
1045
|
+
readonly payloadParams: {
|
|
1046
|
+
readonly optional: readonly ["type"];
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
|
+
};
|
|
1050
|
+
readonly '/session/:sessionId/appium/log_event': {
|
|
1051
|
+
readonly POST: {
|
|
1052
|
+
readonly command: "logCustomEvent";
|
|
1053
|
+
readonly payloadParams: {
|
|
1054
|
+
readonly required: readonly ["vendor", "event"];
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
readonly '/session/:sessionId/alert_text': {
|
|
1059
|
+
readonly GET: {
|
|
1060
|
+
readonly command: "getAlertText";
|
|
1061
|
+
};
|
|
1062
|
+
readonly POST: {
|
|
1063
|
+
readonly command: "setAlertText";
|
|
1064
|
+
readonly payloadParams: {
|
|
1065
|
+
validate: (jsonObj: any) => false | "either \"text\" or \"value\" must be set";
|
|
1066
|
+
optional: string[];
|
|
1067
|
+
makeArgs: (jsonObj: any) => any[];
|
|
1068
|
+
};
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
readonly '/session/:sessionId/accept_alert': {
|
|
1072
|
+
readonly POST: {
|
|
1073
|
+
readonly command: "postAcceptAlert";
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
readonly '/session/:sessionId/dismiss_alert': {
|
|
1077
|
+
readonly POST: {
|
|
1078
|
+
readonly command: "postDismissAlert";
|
|
1079
|
+
};
|
|
1080
|
+
};
|
|
1081
|
+
readonly '/session/:sessionId/alert/text': {
|
|
1082
|
+
readonly GET: {
|
|
1083
|
+
readonly command: "getAlertText";
|
|
1084
|
+
};
|
|
1085
|
+
readonly POST: {
|
|
1086
|
+
readonly command: "setAlertText";
|
|
1087
|
+
readonly payloadParams: {
|
|
1088
|
+
validate: (jsonObj: any) => false | "either \"text\" or \"value\" must be set";
|
|
1089
|
+
optional: string[];
|
|
1090
|
+
makeArgs: (jsonObj: any) => any[];
|
|
1091
|
+
};
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
readonly '/session/:sessionId/alert/accept': {
|
|
1095
|
+
readonly POST: {
|
|
1096
|
+
readonly command: "postAcceptAlert";
|
|
1097
|
+
};
|
|
1098
|
+
};
|
|
1099
|
+
readonly '/session/:sessionId/alert/dismiss': {
|
|
1100
|
+
readonly POST: {
|
|
1101
|
+
readonly command: "postDismissAlert";
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
readonly '/session/:sessionId/element/:elementId/rect': {
|
|
1105
|
+
readonly GET: {
|
|
1106
|
+
readonly command: "getElementRect";
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
readonly '/session/:sessionId/execute/sync': {
|
|
1110
|
+
readonly POST: {
|
|
1111
|
+
readonly command: "execute";
|
|
1112
|
+
readonly payloadParams: {
|
|
1113
|
+
readonly required: readonly ["script", "args"];
|
|
1114
|
+
};
|
|
1115
|
+
};
|
|
1116
|
+
};
|
|
1117
|
+
readonly '/session/:sessionId/execute/async': {
|
|
1118
|
+
readonly POST: {
|
|
1119
|
+
readonly command: "executeAsync";
|
|
1120
|
+
readonly payloadParams: {
|
|
1121
|
+
readonly required: readonly ["script", "args"];
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
readonly '/session/:sessionId/screenshot/:elementId': {
|
|
1126
|
+
readonly GET: {
|
|
1127
|
+
readonly command: "getElementScreenshot";
|
|
1128
|
+
};
|
|
1129
|
+
};
|
|
1130
|
+
readonly '/session/:sessionId/element/:elementId/screenshot': {
|
|
1131
|
+
readonly GET: {
|
|
1132
|
+
readonly command: "getElementScreenshot";
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1135
|
+
readonly '/session/:sessionId/window/rect': {
|
|
1136
|
+
readonly GET: {
|
|
1137
|
+
readonly command: "getWindowRect";
|
|
1138
|
+
};
|
|
1139
|
+
readonly POST: {
|
|
1140
|
+
readonly command: "setWindowRect";
|
|
1141
|
+
readonly payloadParams: {
|
|
1142
|
+
readonly required: readonly ["x", "y", "width", "height"];
|
|
1143
|
+
};
|
|
1144
|
+
};
|
|
1145
|
+
};
|
|
1146
|
+
readonly '/session/:sessionId/window/maximize': {
|
|
1147
|
+
readonly POST: {
|
|
1148
|
+
readonly command: "maximizeWindow";
|
|
1149
|
+
};
|
|
1150
|
+
};
|
|
1151
|
+
readonly '/session/:sessionId/window/minimize': {
|
|
1152
|
+
readonly POST: {
|
|
1153
|
+
readonly command: "minimizeWindow";
|
|
1154
|
+
};
|
|
1155
|
+
};
|
|
1156
|
+
readonly '/session/:sessionId/window/fullscreen': {
|
|
1157
|
+
readonly POST: {
|
|
1158
|
+
readonly command: "fullScreenWindow";
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1161
|
+
readonly '/session/:sessionId/window/new': {
|
|
1162
|
+
readonly POST: {
|
|
1163
|
+
readonly command: "createNewWindow";
|
|
1164
|
+
readonly payloadParams: {
|
|
1165
|
+
readonly optional: readonly ["type"];
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
1168
|
+
};
|
|
1169
|
+
readonly '/session/:sessionId/element/:elementId/property/:name': {
|
|
1170
|
+
readonly GET: {
|
|
1171
|
+
readonly command: "getProperty";
|
|
1172
|
+
};
|
|
1173
|
+
};
|
|
1174
|
+
readonly '/session/:sessionId/appium/device/set_clipboard': {
|
|
1175
|
+
readonly POST: {
|
|
1176
|
+
readonly command: "setClipboard";
|
|
1177
|
+
readonly payloadParams: {
|
|
1178
|
+
readonly required: readonly ["content"];
|
|
1179
|
+
readonly optional: readonly ["contentType", "label"];
|
|
1180
|
+
};
|
|
1181
|
+
};
|
|
1182
|
+
};
|
|
1183
|
+
readonly '/session/:sessionId/appium/device/get_clipboard': {
|
|
1184
|
+
readonly POST: {
|
|
1185
|
+
readonly command: "getClipboard";
|
|
1186
|
+
readonly payloadParams: {
|
|
1187
|
+
readonly optional: readonly ["contentType"];
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
};
|
|
1191
|
+
readonly '/session/:sessionId/:vendor/cdp/execute': {
|
|
1192
|
+
readonly POST: {
|
|
1193
|
+
readonly command: "executeCdp";
|
|
1194
|
+
readonly payloadParams: {
|
|
1195
|
+
readonly required: readonly ["cmd", "params"];
|
|
1196
|
+
};
|
|
1197
|
+
};
|
|
1198
|
+
};
|
|
1199
|
+
readonly '/session/:sessionId/webauthn/authenticator': {
|
|
1200
|
+
readonly POST: {
|
|
1201
|
+
readonly command: "addVirtualAuthenticator";
|
|
1202
|
+
readonly payloadParams: {
|
|
1203
|
+
readonly required: readonly ["protocol", "transport"];
|
|
1204
|
+
readonly optional: readonly ["hasResidentKey", "hasUserVerification", "isUserConsenting", "isUserVerified"];
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId': {
|
|
1209
|
+
readonly DELETE: {
|
|
1210
|
+
readonly command: "removeVirtualAuthenticator";
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId/credential': {
|
|
1214
|
+
readonly POST: {
|
|
1215
|
+
readonly command: "addAuthCredential";
|
|
1216
|
+
readonly payloadParams: {
|
|
1217
|
+
readonly required: readonly ["credentialId", "isResidentCredential", "rpId", "privateKey"];
|
|
1218
|
+
readonly optional: readonly ["userHandle", "signCount"];
|
|
1219
|
+
};
|
|
1220
|
+
};
|
|
1221
|
+
};
|
|
1222
|
+
readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId/credentials': {
|
|
1223
|
+
readonly GET: {
|
|
1224
|
+
readonly command: "getAuthCredential";
|
|
1225
|
+
};
|
|
1226
|
+
readonly DELETE: {
|
|
1227
|
+
readonly command: "removeAllAuthCredentials";
|
|
1228
|
+
};
|
|
1229
|
+
};
|
|
1230
|
+
readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId/credentials/:credentialId': {
|
|
1231
|
+
readonly DELETE: {
|
|
1232
|
+
readonly command: "removeAuthCredential";
|
|
1233
|
+
};
|
|
1234
|
+
};
|
|
1235
|
+
readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId/uv': {
|
|
1236
|
+
readonly POST: {
|
|
1237
|
+
readonly command: "setUserAuthVerified";
|
|
1238
|
+
readonly payloadParams: {
|
|
1239
|
+
readonly required: readonly ["isUserVerified"];
|
|
1240
|
+
};
|
|
1241
|
+
};
|
|
1242
|
+
};
|
|
1243
|
+
};
|
|
10
1244
|
export let ALL_COMMANDS: any[];
|
|
11
1245
|
export const NO_SESSION_ID_COMMANDS: string[];
|
|
12
1246
|
/**
|