@wdio/protocols 9.16.2 → 9.23.1
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/commands/appium.d.ts +105 -54
- package/build/commands/appium.d.ts.map +1 -1
- package/build/commands/mjsonwp.d.ts +5 -0
- package/build/commands/mjsonwp.d.ts.map +1 -1
- package/build/commands/webdriver.d.ts +4 -4
- package/build/commands/webdriver.d.ts.map +1 -1
- package/build/index.js +204 -84
- package/build/protocols/appium.d.ts +61 -6
- package/build/protocols/appium.d.ts.map +1 -1
- package/build/protocols/mjsonwp.d.ts +5 -0
- package/build/protocols/mjsonwp.d.ts.map +1 -1
- package/build/protocols/webdriver.d.ts +6 -1
- package/build/protocols/webdriver.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -20,7 +20,7 @@ export default interface AppiumCommands {
|
|
|
20
20
|
* Appium Protocol Command
|
|
21
21
|
*
|
|
22
22
|
* Retrieve the capabilities of the current session.
|
|
23
|
-
* @ref https://
|
|
23
|
+
* @ref https://appium.io/docs/en/latest/reference/api/jsonwp/#getsession
|
|
24
24
|
* @deprecated Use `getAppiumSessionCapabilities` instead
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
@@ -29,7 +29,7 @@ export default interface AppiumCommands {
|
|
|
29
29
|
* Appium Protocol Command
|
|
30
30
|
*
|
|
31
31
|
* No description available, please see reference link.
|
|
32
|
-
* @ref https://
|
|
32
|
+
* @ref https://appium.io/docs/en/latest/reference/api/mjsonwp/#getcurrentcontext
|
|
33
33
|
*
|
|
34
34
|
*/
|
|
35
35
|
getAppiumContext(): Promise<Context>;
|
|
@@ -37,7 +37,7 @@ export default interface AppiumCommands {
|
|
|
37
37
|
* Appium Protocol Command
|
|
38
38
|
*
|
|
39
39
|
* No description available, please see reference link.
|
|
40
|
-
* @ref https://
|
|
40
|
+
* @ref https://appium.io/docs/en/latest/reference/api/mjsonwp/#setcontext
|
|
41
41
|
*
|
|
42
42
|
*/
|
|
43
43
|
switchAppiumContext(name: string): Promise<void>;
|
|
@@ -45,7 +45,7 @@ export default interface AppiumCommands {
|
|
|
45
45
|
* Appium Protocol Command
|
|
46
46
|
*
|
|
47
47
|
* No description available, please see reference link.
|
|
48
|
-
* @ref https://
|
|
48
|
+
* @ref https://appium.io/docs/en/latest/reference/api/mjsonwp/#getcontexts
|
|
49
49
|
*
|
|
50
50
|
*/
|
|
51
51
|
getAppiumContexts(): Promise<Context[]>;
|
|
@@ -53,7 +53,7 @@ export default interface AppiumCommands {
|
|
|
53
53
|
* Appium Protocol Command
|
|
54
54
|
*
|
|
55
55
|
* Retrieve the endpoints and BiDi commands supported in the current session.
|
|
56
|
-
* @ref https://
|
|
56
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#listcommands
|
|
57
57
|
*
|
|
58
58
|
*/
|
|
59
59
|
getAppiumCommands(): Promise<ProtocolCommandResponse>;
|
|
@@ -61,7 +61,7 @@ export default interface AppiumCommands {
|
|
|
61
61
|
* Appium Protocol Command
|
|
62
62
|
*
|
|
63
63
|
* Retrieve the extension commands supported in the current session.
|
|
64
|
-
* @ref https://
|
|
64
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#listextensions
|
|
65
65
|
*
|
|
66
66
|
*/
|
|
67
67
|
getAppiumExtensions(): Promise<ProtocolCommandResponse>;
|
|
@@ -69,7 +69,7 @@ export default interface AppiumCommands {
|
|
|
69
69
|
* Appium Protocol Command
|
|
70
70
|
*
|
|
71
71
|
* Retrieve the capabilities of the current session.
|
|
72
|
-
* @ref https://
|
|
72
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#getappiumsessioncapabilities
|
|
73
73
|
*
|
|
74
74
|
*/
|
|
75
75
|
getAppiumSessionCapabilities(): Promise<ProtocolCommandResponse>;
|
|
@@ -78,6 +78,7 @@ export default interface AppiumCommands {
|
|
|
78
78
|
*
|
|
79
79
|
* Perform a shake action on the device.
|
|
80
80
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/interactions/shake/
|
|
81
|
+
* @deprecated Use `driver.execute('mobile: shake')` instead
|
|
81
82
|
*
|
|
82
83
|
*/
|
|
83
84
|
shake(): Promise<void>;
|
|
@@ -86,6 +87,7 @@ export default interface AppiumCommands {
|
|
|
86
87
|
*
|
|
87
88
|
* Lock the device.
|
|
88
89
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/interactions/lock/
|
|
90
|
+
* @deprecated Use `driver.execute('mobile: lock', { ... })` instead
|
|
89
91
|
*
|
|
90
92
|
*/
|
|
91
93
|
lock(seconds?: number): Promise<void>;
|
|
@@ -94,6 +96,7 @@ export default interface AppiumCommands {
|
|
|
94
96
|
*
|
|
95
97
|
* Unlock the device.
|
|
96
98
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/interactions/unlock/
|
|
99
|
+
* @deprecated Use `driver.execute('mobile: unlock')` instead
|
|
97
100
|
*
|
|
98
101
|
*/
|
|
99
102
|
unlock(): Promise<void>;
|
|
@@ -102,6 +105,7 @@ export default interface AppiumCommands {
|
|
|
102
105
|
*
|
|
103
106
|
* Check whether the device is locked or not.
|
|
104
107
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/interactions/is-locked/
|
|
108
|
+
* @deprecated Use `driver.execute('mobile: isLocked')` instead
|
|
105
109
|
*
|
|
106
110
|
*/
|
|
107
111
|
isLocked(): Promise<boolean>;
|
|
@@ -126,6 +130,7 @@ export default interface AppiumCommands {
|
|
|
126
130
|
*
|
|
127
131
|
* Returns the information types of the system state which is supported to read as like cpu, memory, network traffic, and battery.
|
|
128
132
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/performance-data/performance-data-types/
|
|
133
|
+
* @deprecated Use `driver.execute('mobile: getPerformanceDataTypes')` instead
|
|
129
134
|
*
|
|
130
135
|
*/
|
|
131
136
|
getPerformanceDataTypes(): Promise<string[]>;
|
|
@@ -134,6 +139,7 @@ export default interface AppiumCommands {
|
|
|
134
139
|
*
|
|
135
140
|
* Returns the information of the system state which is supported to read as like cpu, memory, network traffic, and battery.
|
|
136
141
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/performance-data/get-performance-data/
|
|
142
|
+
* @deprecated Use `driver.execute('mobile: getPerformanceData', { ... })` instead
|
|
137
143
|
*
|
|
138
144
|
*/
|
|
139
145
|
getPerformanceData(packageName: string, dataType: string, dataReadTimeout?: number): Promise<string[]>;
|
|
@@ -142,6 +148,7 @@ export default interface AppiumCommands {
|
|
|
142
148
|
*
|
|
143
149
|
* Press a particular key on the device.
|
|
144
150
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/keys/press-keycode/
|
|
151
|
+
* @deprecated Use `driver.execute('mobile: pressKey', { ... })` instead
|
|
145
152
|
*
|
|
146
153
|
*/
|
|
147
154
|
pressKeyCode(keycode: number, metastate?: number, flags?: number): Promise<void>;
|
|
@@ -150,6 +157,7 @@ export default interface AppiumCommands {
|
|
|
150
157
|
*
|
|
151
158
|
* Press and hold a particular key code on the device.
|
|
152
159
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/keys/long-press-keycode/
|
|
160
|
+
* @deprecated Use `driver.execute('mobile: pressKey', { ... })` instead
|
|
153
161
|
*
|
|
154
162
|
*/
|
|
155
163
|
longPressKeyCode(keycode: number, metastate?: number, flags?: number): Promise<void>;
|
|
@@ -158,6 +166,7 @@ export default interface AppiumCommands {
|
|
|
158
166
|
*
|
|
159
167
|
* Send a key code to the device.
|
|
160
168
|
* @ref https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints
|
|
169
|
+
* @deprecated Use `driver.execute('mobile: pressKey', { ... })` instead
|
|
161
170
|
*
|
|
162
171
|
*/
|
|
163
172
|
sendKeyEvent(keycode: string, metastate?: string): Promise<void>;
|
|
@@ -165,7 +174,7 @@ export default interface AppiumCommands {
|
|
|
165
174
|
* Appium Protocol Command
|
|
166
175
|
*
|
|
167
176
|
* Rotate the device in three dimensions.
|
|
168
|
-
* @ref https://
|
|
177
|
+
* @ref https://appium.io/docs/en/latest/reference/api/mjsonwp/#setrotation
|
|
169
178
|
*
|
|
170
179
|
*/
|
|
171
180
|
rotateDevice(x: number, y: number, z: number): Promise<void>;
|
|
@@ -174,6 +183,7 @@ export default interface AppiumCommands {
|
|
|
174
183
|
*
|
|
175
184
|
* Get the name of the current Android activity.
|
|
176
185
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/activity/current-activity/
|
|
186
|
+
* @deprecated Use `driver.execute('mobile: getCurrentActivity')` instead
|
|
177
187
|
*
|
|
178
188
|
*/
|
|
179
189
|
getCurrentActivity(): Promise<string>;
|
|
@@ -182,6 +192,7 @@ export default interface AppiumCommands {
|
|
|
182
192
|
*
|
|
183
193
|
* Get the name of the current Android package.
|
|
184
194
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/activity/current-package/
|
|
195
|
+
* @deprecated Use `driver.execute('mobile: getCurrentPackage')` instead
|
|
185
196
|
*
|
|
186
197
|
*/
|
|
187
198
|
getCurrentPackage(): Promise<string>;
|
|
@@ -189,55 +200,55 @@ export default interface AppiumCommands {
|
|
|
189
200
|
* Appium Protocol Command
|
|
190
201
|
*
|
|
191
202
|
* Install the given app onto the device.
|
|
192
|
-
* @ref https://appium.
|
|
203
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#installapp
|
|
193
204
|
*
|
|
194
205
|
*/
|
|
195
|
-
installApp(appPath: string): Promise<void>;
|
|
206
|
+
installApp(appPath: string, options?: object): Promise<void>;
|
|
196
207
|
/**
|
|
197
208
|
* Appium Protocol Command
|
|
198
209
|
*
|
|
199
|
-
* Activate the given app
|
|
200
|
-
* @ref https://appium.
|
|
210
|
+
* Activate the given app on the device
|
|
211
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#activateapp
|
|
201
212
|
*
|
|
202
213
|
*/
|
|
203
|
-
activateApp(appId
|
|
214
|
+
activateApp(appId?: string, bundleId?: string, options?: object): Promise<void>;
|
|
204
215
|
/**
|
|
205
216
|
* Appium Protocol Command
|
|
206
217
|
*
|
|
207
218
|
* Remove an app from the device.
|
|
208
|
-
* @ref https://appium.
|
|
219
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#removeapp
|
|
209
220
|
*
|
|
210
221
|
*/
|
|
211
|
-
removeApp(appId
|
|
222
|
+
removeApp(appId?: string, bundleId?: string, options?: object): Promise<boolean>;
|
|
212
223
|
/**
|
|
213
224
|
* Appium Protocol Command
|
|
214
225
|
*
|
|
215
226
|
* Terminate the given app on the device
|
|
216
|
-
* @ref https://appium.
|
|
227
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#terminateapp
|
|
217
228
|
*
|
|
218
229
|
*/
|
|
219
|
-
terminateApp(appId
|
|
230
|
+
terminateApp(appId?: string, bundleId?: string, options?: object): Promise<void>;
|
|
220
231
|
/**
|
|
221
232
|
* Appium Protocol Command
|
|
222
233
|
*
|
|
223
234
|
* Check whether the specified app is installed on the device.
|
|
224
|
-
* @ref https://appium.
|
|
235
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#isappinstalled
|
|
225
236
|
*
|
|
226
237
|
*/
|
|
227
|
-
isAppInstalled(appId
|
|
238
|
+
isAppInstalled(appId?: string, bundleId?: string): Promise<boolean>;
|
|
228
239
|
/**
|
|
229
240
|
* Appium Protocol Command
|
|
230
241
|
*
|
|
231
242
|
* Get the given app status on the device
|
|
232
|
-
* @ref https://appium.
|
|
243
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#queryappstate
|
|
233
244
|
*
|
|
234
245
|
*/
|
|
235
|
-
queryAppState(appId
|
|
246
|
+
queryAppState(appId?: string, bundleId?: string): Promise<number>;
|
|
236
247
|
/**
|
|
237
248
|
* Appium Protocol Command
|
|
238
249
|
*
|
|
239
250
|
* Hide soft keyboard.
|
|
240
|
-
* @ref https://appium.
|
|
251
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#hidekeyboard
|
|
241
252
|
*
|
|
242
253
|
*/
|
|
243
254
|
hideKeyboard(strategy?: string, key?: string, keyCode?: string, keyName?: string): Promise<void>;
|
|
@@ -245,7 +256,7 @@ export default interface AppiumCommands {
|
|
|
245
256
|
* Appium Protocol Command
|
|
246
257
|
*
|
|
247
258
|
* Whether or not the soft keyboard is shown.
|
|
248
|
-
* @ref https://appium.
|
|
259
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#iskeyboardshown
|
|
249
260
|
*
|
|
250
261
|
*/
|
|
251
262
|
isKeyboardShown(): Promise<boolean>;
|
|
@@ -253,7 +264,7 @@ export default interface AppiumCommands {
|
|
|
253
264
|
* Appium Protocol Command
|
|
254
265
|
*
|
|
255
266
|
* Place a file onto the device in a particular place.
|
|
256
|
-
* @ref https://appium.
|
|
267
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#pushfile
|
|
257
268
|
*
|
|
258
269
|
*/
|
|
259
270
|
pushFile(path: string, data: string): Promise<void>;
|
|
@@ -261,7 +272,7 @@ export default interface AppiumCommands {
|
|
|
261
272
|
* Appium Protocol Command
|
|
262
273
|
*
|
|
263
274
|
* Retrieve a file from the device's file system.
|
|
264
|
-
* @ref https://appium.
|
|
275
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#pullfile
|
|
265
276
|
*
|
|
266
277
|
*/
|
|
267
278
|
pullFile(path: string): Promise<string>;
|
|
@@ -269,15 +280,16 @@ export default interface AppiumCommands {
|
|
|
269
280
|
* Appium Protocol Command
|
|
270
281
|
*
|
|
271
282
|
* Retrieve a folder from the device's file system.
|
|
272
|
-
* @ref https://appium.
|
|
283
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#pullfolder
|
|
273
284
|
*
|
|
274
285
|
*/
|
|
275
|
-
pullFolder(path: string): Promise<
|
|
286
|
+
pullFolder(path: string): Promise<string>;
|
|
276
287
|
/**
|
|
277
288
|
* Appium Protocol Command
|
|
278
289
|
*
|
|
279
290
|
* Toggle airplane mode on device.
|
|
280
291
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-airplane-mode/
|
|
292
|
+
* @deprecated Use `driver.execute('mobile: setConnectivity', { ... })` instead
|
|
281
293
|
*
|
|
282
294
|
*/
|
|
283
295
|
toggleAirplaneMode(): Promise<void>;
|
|
@@ -286,6 +298,7 @@ export default interface AppiumCommands {
|
|
|
286
298
|
*
|
|
287
299
|
* Switch the state of data service.
|
|
288
300
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-data/
|
|
301
|
+
* @deprecated Use `driver.execute('mobile: setConnectivity', { ... })` instead
|
|
289
302
|
*
|
|
290
303
|
*/
|
|
291
304
|
toggleData(): Promise<void>;
|
|
@@ -294,6 +307,7 @@ export default interface AppiumCommands {
|
|
|
294
307
|
*
|
|
295
308
|
* Switch the state of the wifi service.
|
|
296
309
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-wifi/
|
|
310
|
+
* @deprecated Use `driver.execute('mobile: setConnectivity', { ... })` instead
|
|
297
311
|
*
|
|
298
312
|
*/
|
|
299
313
|
toggleWiFi(): Promise<void>;
|
|
@@ -302,6 +316,7 @@ export default interface AppiumCommands {
|
|
|
302
316
|
*
|
|
303
317
|
* Switch the state of the location service.
|
|
304
318
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-location-services/
|
|
319
|
+
* @deprecated Use `driver.execute('mobile: toggleGps')` instead
|
|
305
320
|
*
|
|
306
321
|
*/
|
|
307
322
|
toggleLocationServices(): Promise<void>;
|
|
@@ -310,14 +325,16 @@ export default interface AppiumCommands {
|
|
|
310
325
|
*
|
|
311
326
|
* Set network speed (Emulator only)
|
|
312
327
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/network/network-speed/
|
|
328
|
+
* @deprecated Use `driver.execute('mobile: networkSpeed', { ... })` instead
|
|
313
329
|
*
|
|
314
330
|
*/
|
|
315
331
|
toggleNetworkSpeed(netspeed: string): Promise<void>;
|
|
316
332
|
/**
|
|
317
333
|
* Appium Protocol Command
|
|
318
334
|
*
|
|
319
|
-
* Open Android notifications
|
|
335
|
+
* Open Android notifications.
|
|
320
336
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/system/open-notifications/
|
|
337
|
+
* @deprecated Use `driver.execute('mobile: openNotifications')` or `driver.execute('mobile: statusBar', { ... })` instead
|
|
321
338
|
*
|
|
322
339
|
*/
|
|
323
340
|
openNotifications(): Promise<void>;
|
|
@@ -326,6 +343,7 @@ export default interface AppiumCommands {
|
|
|
326
343
|
*
|
|
327
344
|
* Start an Android activity by providing package name and activity name.
|
|
328
345
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/activity/start-activity/
|
|
346
|
+
* @deprecated Use `driver.execute('mobile: startActivity', { ... })` instead
|
|
329
347
|
*
|
|
330
348
|
*/
|
|
331
349
|
startActivity(appPackage: string, appActivity: string, appWaitPackage?: string, appWaitActivity?: string, intentAction?: string, intentCategory?: string, intentFlags?: string, optionalIntentArguments?: string, dontStopAppOnReset?: string): Promise<void>;
|
|
@@ -334,6 +352,7 @@ export default interface AppiumCommands {
|
|
|
334
352
|
*
|
|
335
353
|
* Retrieve visibility and bounds information of the status and navigation bars.
|
|
336
354
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/system/system-bars/
|
|
355
|
+
* @deprecated Use `driver.execute('mobile: getSystemBars')` instead
|
|
337
356
|
*
|
|
338
357
|
*/
|
|
339
358
|
getSystemBars(): Promise<object[]>;
|
|
@@ -350,6 +369,7 @@ export default interface AppiumCommands {
|
|
|
350
369
|
*
|
|
351
370
|
* Get display density from device.
|
|
352
371
|
* @ref https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints
|
|
372
|
+
* @deprecated Use `driver.execute('mobile: getDisplayDensity')` instead
|
|
353
373
|
*
|
|
354
374
|
*/
|
|
355
375
|
getDisplayDensity(): Promise<any>;
|
|
@@ -358,6 +378,7 @@ export default interface AppiumCommands {
|
|
|
358
378
|
*
|
|
359
379
|
* Simulate a [touch id](https://support.apple.com/en-ca/ht201371) event (iOS Simulator only). To enable this feature, the `allowTouchIdEnroll` desired capability must be set to true and the Simulator must be [enrolled](https://support.apple.com/en-ca/ht201371). When you set allowTouchIdEnroll to true, it will set the Simulator to be enrolled by default. The enrollment state can be [toggled](https://appium.github.io/appium.io/docs/en/commands/device/simulator/toggle-touch-id-enrollment/index.html). This call will only work if Appium process or its parent application (e.g. Terminal.app or Appium.app) has access to Mac OS accessibility in System Preferences > Security & Privacy > Privacy > Accessibility list.
|
|
360
380
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/simulator/touch-id/
|
|
381
|
+
* @deprecated Use `driver.execute('mobile: sendBiometricMatch', { ... })` instead
|
|
361
382
|
*
|
|
362
383
|
*/
|
|
363
384
|
touchId(match: boolean): Promise<void>;
|
|
@@ -366,6 +387,7 @@ export default interface AppiumCommands {
|
|
|
366
387
|
*
|
|
367
388
|
* Toggle the simulator being [enrolled](https://support.apple.com/en-ca/ht201371) to accept touchId (iOS Simulator only). To enable this feature, the `allowTouchIdEnroll` desired capability must be set to true. When `allowTouchIdEnroll` is set to true the Simulator will be enrolled by default, and the 'Toggle Touch ID Enrollment' changes the enrollment state. This call will only work if the Appium process or its parent application (e.g., Terminal.app or Appium.app) has access to Mac OS accessibility in System Preferences > Security & Privacy > Privacy > Accessibility list.
|
|
368
389
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/simulator/toggle-touch-id-enrollment/
|
|
390
|
+
* @deprecated Use `driver.execute('mobile: enrollBiometric', { ... })` instead
|
|
369
391
|
*
|
|
370
392
|
*/
|
|
371
393
|
toggleEnrollTouchId(enabled?: boolean): Promise<void>;
|
|
@@ -374,7 +396,7 @@ export default interface AppiumCommands {
|
|
|
374
396
|
*
|
|
375
397
|
* Launch an app on device.
|
|
376
398
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/app/launch-app/
|
|
377
|
-
* @deprecated
|
|
399
|
+
* @deprecated Use `driver.execute('mobile: launchApp', { ... })` (iOS) or `driver.execute('mobile: activateApp', { ... })` (Android) instead
|
|
378
400
|
*
|
|
379
401
|
*/
|
|
380
402
|
launchApp(): Promise<void>;
|
|
@@ -401,6 +423,7 @@ export default interface AppiumCommands {
|
|
|
401
423
|
*
|
|
402
424
|
* Get test coverage data.
|
|
403
425
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/app/end-test-coverage/
|
|
426
|
+
* @deprecated Use `driver.execute('mobile: shell', { ... })` instead
|
|
404
427
|
*
|
|
405
428
|
*/
|
|
406
429
|
endCoverage(intent: string, path: string): Promise<void>;
|
|
@@ -409,6 +432,7 @@ export default interface AppiumCommands {
|
|
|
409
432
|
*
|
|
410
433
|
* Get app strings.
|
|
411
434
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/app/get-app-strings/
|
|
435
|
+
* @deprecated Use `driver.execute('mobile: getAppStrings', { ... })` instead
|
|
412
436
|
*
|
|
413
437
|
*/
|
|
414
438
|
getStrings(language?: string, stringFile?: string): Promise<StringsReturn>;
|
|
@@ -417,6 +441,7 @@ export default interface AppiumCommands {
|
|
|
417
441
|
*
|
|
418
442
|
* No description available, please see reference link.
|
|
419
443
|
* @ref https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints
|
|
444
|
+
* @deprecated Use `driver.addValue(...)` or `driver.setValue(...)` instead
|
|
420
445
|
*
|
|
421
446
|
*/
|
|
422
447
|
setValueImmediate(elementId: string, text: string): Promise<void>;
|
|
@@ -425,22 +450,23 @@ export default interface AppiumCommands {
|
|
|
425
450
|
*
|
|
426
451
|
* Replace the value to element directly.
|
|
427
452
|
* @ref https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints
|
|
453
|
+
* @deprecated Use `driver.addValue(...)` or `driver.setValue(...)` instead
|
|
428
454
|
*
|
|
429
455
|
*/
|
|
430
456
|
replaceValue(elementId: string, value: string): Promise<void>;
|
|
431
457
|
/**
|
|
432
458
|
* Appium Protocol Command
|
|
433
459
|
*
|
|
434
|
-
* Retrieve the current settings
|
|
435
|
-
* @ref https://appium.
|
|
460
|
+
* Retrieve the current session settings.
|
|
461
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#getsettings
|
|
436
462
|
*
|
|
437
463
|
*/
|
|
438
464
|
getSettings(): Promise<SettingsReturn>;
|
|
439
465
|
/**
|
|
440
466
|
* Appium Protocol Command
|
|
441
467
|
*
|
|
442
|
-
* Update the
|
|
443
|
-
* @ref https://appium.
|
|
468
|
+
* Update the session settings.
|
|
469
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#updatesettings
|
|
444
470
|
*
|
|
445
471
|
*/
|
|
446
472
|
updateSettings(settings: object): Promise<void>;
|
|
@@ -449,6 +475,7 @@ export default interface AppiumCommands {
|
|
|
449
475
|
*
|
|
450
476
|
* Callback url for asynchronous execution of JavaScript.
|
|
451
477
|
* @ref https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints
|
|
478
|
+
* @deprecated Use `driver.executeAsyncScript(...)` instead
|
|
452
479
|
*
|
|
453
480
|
*/
|
|
454
481
|
receiveAsyncResponse(response: object): Promise<void>;
|
|
@@ -457,6 +484,7 @@ export default interface AppiumCommands {
|
|
|
457
484
|
*
|
|
458
485
|
* Make GSM call (Emulator only).
|
|
459
486
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/network/gsm-call/
|
|
487
|
+
* @deprecated Use `driver.execute('mobile: gsmCall', { ... })` instead
|
|
460
488
|
*
|
|
461
489
|
*/
|
|
462
490
|
gsmCall(phoneNumber: string, action: string): Promise<void>;
|
|
@@ -465,6 +493,7 @@ export default interface AppiumCommands {
|
|
|
465
493
|
*
|
|
466
494
|
* Set GSM signal strength (Emulator only).
|
|
467
495
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/network/gsm-signal/
|
|
496
|
+
* @deprecated Use `driver.execute('mobile: gsmSignal', { ... })` instead
|
|
468
497
|
*
|
|
469
498
|
*/
|
|
470
499
|
gsmSignal(signalStrength: string, signalStrengh?: string): Promise<void>;
|
|
@@ -473,6 +502,7 @@ export default interface AppiumCommands {
|
|
|
473
502
|
*
|
|
474
503
|
* Set the battery percentage (Emulator only).
|
|
475
504
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/emulator/power_capacity/
|
|
505
|
+
* @deprecated Use `driver.execute('mobile: powerCapacity', { ... })` instead
|
|
476
506
|
*
|
|
477
507
|
*/
|
|
478
508
|
powerCapacity(percent: number): Promise<void>;
|
|
@@ -481,6 +511,7 @@ export default interface AppiumCommands {
|
|
|
481
511
|
*
|
|
482
512
|
* Set the state of the battery charger to connected or not (Emulator only).
|
|
483
513
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/emulator/power_ac/
|
|
514
|
+
* @deprecated Use `driver.execute('mobile: powerAC', { ... })` instead
|
|
484
515
|
*
|
|
485
516
|
*/
|
|
486
517
|
powerAC(state: string): Promise<void>;
|
|
@@ -489,6 +520,7 @@ export default interface AppiumCommands {
|
|
|
489
520
|
*
|
|
490
521
|
* Set GSM voice state (Emulator only).
|
|
491
522
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/network/gsm-voice/
|
|
523
|
+
* @deprecated Use `driver.execute('mobile: gsmVoice', { ... })` instead
|
|
492
524
|
*
|
|
493
525
|
*/
|
|
494
526
|
gsmVoice(state: string): Promise<void>;
|
|
@@ -497,6 +529,7 @@ export default interface AppiumCommands {
|
|
|
497
529
|
*
|
|
498
530
|
* Simulate an SMS message (Emulator only).
|
|
499
531
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/network/send-sms/
|
|
532
|
+
* @deprecated Use `driver.execute('mobile: sendSms', { ... })` instead
|
|
500
533
|
*
|
|
501
534
|
*/
|
|
502
535
|
sendSms(phoneNumber: string, message: string): Promise<void>;
|
|
@@ -505,6 +538,7 @@ export default interface AppiumCommands {
|
|
|
505
538
|
*
|
|
506
539
|
* Authenticate users by using their finger print scans on supported emulators.
|
|
507
540
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/authentication/finger-print/
|
|
541
|
+
* @deprecated Use `driver.execute('mobile: fingerPrint', { ... })` instead
|
|
508
542
|
*
|
|
509
543
|
*/
|
|
510
544
|
fingerPrint(fingerprintId: number): Promise<void>;
|
|
@@ -513,6 +547,7 @@ export default interface AppiumCommands {
|
|
|
513
547
|
*
|
|
514
548
|
* Set the content of the system clipboard
|
|
515
549
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/clipboard/set-clipboard/
|
|
550
|
+
* @deprecated Use `driver.execute('mobile: setClipboard', { ... })` instead
|
|
516
551
|
*
|
|
517
552
|
*/
|
|
518
553
|
setClipboard(content: string, contentType?: string, label?: string): Promise<string>;
|
|
@@ -521,6 +556,7 @@ export default interface AppiumCommands {
|
|
|
521
556
|
*
|
|
522
557
|
* Get the content of the system clipboard
|
|
523
558
|
* @ref https://appium.github.io/appium.io/docs/en/commands/device/clipboard/get-clipboard/
|
|
559
|
+
* @deprecated Use `driver.execute('mobile: getClipboard', { ... })` instead
|
|
524
560
|
*
|
|
525
561
|
*/
|
|
526
562
|
getClipboard(contentType?: string): Promise<string>;
|
|
@@ -529,6 +565,7 @@ export default interface AppiumCommands {
|
|
|
529
565
|
*
|
|
530
566
|
* This functionality is only available from within a native context. 'Touch Perform' works similarly to the other singular touch interactions, except that this allows you to chain together more than one touch action as one command. This is useful because Appium commands are sent over the network and there's latency between commands. This latency can make certain touch interactions impossible because some interactions need to be performed in one sequence. Vertical, for example, requires pressing down, moving to a different y coordinate, and then releasing. For it to work, there can't be a delay between the interactions.
|
|
531
567
|
* @ref https://appium.github.io/appium.io/docs/en/commands/interactions/touch/touch-perform/
|
|
568
|
+
* @deprecated Use `driver.performActions(...)` instead
|
|
532
569
|
*
|
|
533
570
|
* @example
|
|
534
571
|
* ```js
|
|
@@ -575,46 +612,48 @@ export default interface AppiumCommands {
|
|
|
575
612
|
*
|
|
576
613
|
* This functionality is only available from within a native context. Perform a multi touch action sequence.
|
|
577
614
|
* @ref https://appium.github.io/appium.io/docs/en/commands/interactions/touch/multi-touch-perform/
|
|
615
|
+
* @deprecated Use `driver.performActions(...)` instead
|
|
578
616
|
*
|
|
579
617
|
*/
|
|
580
618
|
multiTouchPerform(actions: object[]): Promise<void>;
|
|
581
619
|
/**
|
|
582
620
|
* Appium Protocol Command
|
|
583
621
|
*
|
|
584
|
-
*
|
|
585
|
-
* @ref https://
|
|
622
|
+
* Execute a script in a child process. This approach helps minimize potential latency associated with each command. ***Using this command in Appium 2 or later requires installing the [`execute-driver`](https://github.com/appium/appium/tree/master/packages/execute-driver-plugin) plugin.***
|
|
623
|
+
* @ref https://appium.io/docs/en/latest/reference/api/plugins/#executedriverscript
|
|
586
624
|
*
|
|
587
625
|
*/
|
|
588
626
|
executeDriverScript(script: string, type?: string, timeout?: number): Promise<ProtocolCommandResponse>;
|
|
589
627
|
/**
|
|
590
628
|
* Appium Protocol Command
|
|
591
629
|
*
|
|
592
|
-
* Get events
|
|
593
|
-
* @ref https://
|
|
630
|
+
* Get events logged in the current session.
|
|
631
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#getlogevents
|
|
594
632
|
*
|
|
595
633
|
*/
|
|
596
|
-
getEvents(type
|
|
634
|
+
getEvents(type?: (string | string[])): Promise<ProtocolCommandResponse>;
|
|
597
635
|
/**
|
|
598
636
|
* Appium Protocol Command
|
|
599
637
|
*
|
|
600
|
-
*
|
|
601
|
-
* @ref https://
|
|
638
|
+
* Log a custom event.
|
|
639
|
+
* @ref https://appium.io/docs/en/latest/reference/api/appium/#logcustomevent
|
|
602
640
|
*
|
|
603
641
|
*/
|
|
604
642
|
logEvent(vendor: string, event: string): Promise<void>;
|
|
605
643
|
/**
|
|
606
644
|
* Appium Protocol Command
|
|
607
645
|
*
|
|
608
|
-
*
|
|
609
|
-
* @ref https://
|
|
646
|
+
* Compare two images using the specified mode of comparison. ***Using this command in Appium 2 or later requires installing the [`images`](https://github.com/appium/appium/tree/master/packages/images-plugin) plugin.***
|
|
647
|
+
* @ref https://appium.io/docs/en/latest/reference/api/plugins/#compareimages
|
|
610
648
|
*
|
|
611
649
|
*/
|
|
612
|
-
compareImages(mode: string, firstImage: string, secondImage: string, options
|
|
650
|
+
compareImages(mode: string, firstImage: string, secondImage: string, options?: object): Promise<ProtocolCommandResponse>;
|
|
613
651
|
/**
|
|
614
652
|
* Appium Protocol Command
|
|
615
653
|
*
|
|
616
654
|
* Set the amount of time the driver should wait when searching for elements. When searching for a single element, the driver should poll the page until an element is found or the timeout expires, whichever occurs first. When searching for multiple elements, the driver should poll the page until at least one element is found or the timeout expires, at which point it should return an empty list. If this command is never sent, the driver should default to an implicit wait of 0ms.
|
|
617
655
|
* @ref https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints
|
|
656
|
+
* @deprecated Use `driver.setTimeouts(...)` instead
|
|
618
657
|
*
|
|
619
658
|
*/
|
|
620
659
|
implicitWait(ms: number): Promise<void>;
|
|
@@ -623,6 +662,7 @@ export default interface AppiumCommands {
|
|
|
623
662
|
*
|
|
624
663
|
* Determine an element's location on the screen once it has been scrolled into view.<br /><br />__Note:__ This is considered an internal command and should only be used to determine an element's location for correctly generating native events.
|
|
625
664
|
* @ref https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints
|
|
665
|
+
* @deprecated Use `driver.getElementRect(...)` or `element.getLocation()` instead
|
|
626
666
|
*
|
|
627
667
|
*/
|
|
628
668
|
getLocationInView(elementId: string): Promise<ProtocolCommandResponse>;
|
|
@@ -631,14 +671,15 @@ export default interface AppiumCommands {
|
|
|
631
671
|
*
|
|
632
672
|
* Send a sequence of key strokes to the active element
|
|
633
673
|
* @ref https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints
|
|
674
|
+
* @deprecated Use `driver.performActions(...)` with `keyUp` and `keyDown` actions instead
|
|
634
675
|
*
|
|
635
676
|
*/
|
|
636
677
|
sendKeys(value: string[]): Promise<void>;
|
|
637
678
|
/**
|
|
638
679
|
* Appium Protocol Command
|
|
639
680
|
*
|
|
640
|
-
* List all available engines on the
|
|
641
|
-
* @ref https://
|
|
681
|
+
* List all available IME engines on the device. To use an engine, it has to be present in this list.
|
|
682
|
+
* @ref https://appium.io/docs/en/latest/reference/api/jsonwp/#availableimeengines
|
|
642
683
|
*
|
|
643
684
|
*/
|
|
644
685
|
availableIMEEngines(): Promise<string[]>;
|
|
@@ -646,7 +687,7 @@ export default interface AppiumCommands {
|
|
|
646
687
|
* Appium Protocol Command
|
|
647
688
|
*
|
|
648
689
|
* Get the name of the active IME engine. The name string is platform specific.
|
|
649
|
-
* @ref https://
|
|
690
|
+
* @ref https://appium.io/docs/en/latest/reference/api/jsonwp/#getactiveimeengine
|
|
650
691
|
*
|
|
651
692
|
*/
|
|
652
693
|
getActiveIMEEngine(): Promise<string>;
|
|
@@ -654,7 +695,7 @@ export default interface AppiumCommands {
|
|
|
654
695
|
* Appium Protocol Command
|
|
655
696
|
*
|
|
656
697
|
* Indicates whether IME input is active at the moment
|
|
657
|
-
* @ref https://
|
|
698
|
+
* @ref https://appium.io/docs/en/latest/reference/api/jsonwp/#isimeactivated
|
|
658
699
|
*
|
|
659
700
|
*/
|
|
660
701
|
isIMEActivated(): Promise<boolean>;
|
|
@@ -662,15 +703,15 @@ export default interface AppiumCommands {
|
|
|
662
703
|
* Appium Protocol Command
|
|
663
704
|
*
|
|
664
705
|
* De-activates the currently-active IME engine.
|
|
665
|
-
* @ref https://
|
|
706
|
+
* @ref https://appium.io/docs/en/latest/reference/api/jsonwp/#deactivateimeengine
|
|
666
707
|
*
|
|
667
708
|
*/
|
|
668
709
|
deactivateIMEEngine(): Promise<void>;
|
|
669
710
|
/**
|
|
670
711
|
* Appium Protocol Command
|
|
671
712
|
*
|
|
672
|
-
*
|
|
673
|
-
* @ref https://
|
|
713
|
+
* Activates an IME engine.
|
|
714
|
+
* @ref https://appium.io/docs/en/latest/reference/api/jsonwp/#activateimeengine
|
|
674
715
|
*
|
|
675
716
|
*/
|
|
676
717
|
activateIMEEngine(engine: string): Promise<void>;
|
|
@@ -679,6 +720,7 @@ export default interface AppiumCommands {
|
|
|
679
720
|
*
|
|
680
721
|
* Set the amount of time, in milliseconds, that asynchronous scripts executed by `/session/:sessionId/execute_async` are permitted to run before they are aborted and a `Timeout` error is returned to the client.
|
|
681
722
|
* @ref https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints
|
|
723
|
+
* @deprecated Use `driver.setTimeouts(...)` instead
|
|
682
724
|
*
|
|
683
725
|
*/
|
|
684
726
|
asyncScriptTimeout(ms: number): Promise<void>;
|
|
@@ -687,6 +729,7 @@ export default interface AppiumCommands {
|
|
|
687
729
|
*
|
|
688
730
|
* Submit a form element.
|
|
689
731
|
* @ref https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints
|
|
732
|
+
* @deprecated Please explicitly find and click the submit element
|
|
690
733
|
*
|
|
691
734
|
*/
|
|
692
735
|
submit(elementId: string): Promise<void>;
|
|
@@ -695,6 +738,7 @@ export default interface AppiumCommands {
|
|
|
695
738
|
*
|
|
696
739
|
* Determine an element's size in pixels. The size will be returned as a JSON object with `width` and `height` properties.
|
|
697
740
|
* @ref https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints
|
|
741
|
+
* @deprecated Use `driver.getElementRect(...)` or `element.getSize()` instead
|
|
698
742
|
*
|
|
699
743
|
*/
|
|
700
744
|
getElementSize(elementId: string): Promise<ProtocolCommandResponse>;
|
|
@@ -703,6 +747,7 @@ export default interface AppiumCommands {
|
|
|
703
747
|
*
|
|
704
748
|
* Determine an element's location on the page. The point `(0, 0)` refers to the upper-left corner of the page. The element's coordinates are returned as a JSON object with `x` and `y` properties.
|
|
705
749
|
* @ref https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints
|
|
750
|
+
* @deprecated Use `driver.getElementRect(...)` or `element.getLocation()` instead
|
|
706
751
|
*
|
|
707
752
|
*/
|
|
708
753
|
getElementLocation(elementId: string): Promise<ProtocolCommandResponse>;
|
|
@@ -711,6 +756,7 @@ export default interface AppiumCommands {
|
|
|
711
756
|
*
|
|
712
757
|
* Single tap on the touch enabled device.
|
|
713
758
|
* @ref https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints
|
|
759
|
+
* @deprecated Use `driver.performActions(...)` with `pointerDown` and `pointerUp` actions instead
|
|
714
760
|
*
|
|
715
761
|
*/
|
|
716
762
|
touchClick(element: string): Promise<void>;
|
|
@@ -719,6 +765,7 @@ export default interface AppiumCommands {
|
|
|
719
765
|
*
|
|
720
766
|
* Finger down on the screen.
|
|
721
767
|
* @ref https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints
|
|
768
|
+
* @deprecated Use `driver.performActions(...)` with a `pointerDown` action instead
|
|
722
769
|
*
|
|
723
770
|
*/
|
|
724
771
|
touchDown(x: number, y: number): Promise<void>;
|
|
@@ -727,6 +774,7 @@ export default interface AppiumCommands {
|
|
|
727
774
|
*
|
|
728
775
|
* Finger up on the screen.
|
|
729
776
|
* @ref https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints
|
|
777
|
+
* @deprecated Use `driver.performActions(...)` with a `pointerUp` action instead
|
|
730
778
|
*
|
|
731
779
|
*/
|
|
732
780
|
touchUp(x: number, y: number): Promise<void>;
|
|
@@ -735,6 +783,7 @@ export default interface AppiumCommands {
|
|
|
735
783
|
*
|
|
736
784
|
* Finger move on the screen.
|
|
737
785
|
* @ref https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints
|
|
786
|
+
* @deprecated Use `driver.performActions(...)` with a `pointerMove` action instead
|
|
738
787
|
*
|
|
739
788
|
*/
|
|
740
789
|
touchMove(x: number, y: number): Promise<void>;
|
|
@@ -743,6 +792,7 @@ export default interface AppiumCommands {
|
|
|
743
792
|
*
|
|
744
793
|
* Long press on the touch screen using finger motion events.
|
|
745
794
|
* @ref https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints
|
|
795
|
+
* @deprecated Use `driver.performActions(...)` with `pointerDown`, `pause` and `pointerUp` actions instead
|
|
746
796
|
*
|
|
747
797
|
*/
|
|
748
798
|
touchLongClick(element: string): Promise<void>;
|
|
@@ -751,6 +801,7 @@ export default interface AppiumCommands {
|
|
|
751
801
|
*
|
|
752
802
|
* Flick on the touch screen using finger motion events. This flick command starts at a particular screen location.
|
|
753
803
|
* @ref https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints
|
|
804
|
+
* @deprecated Use `driver.performActions(...)` with `pointerDown`, `pointerMove` and `pointerUp` actions instead
|
|
754
805
|
*
|
|
755
806
|
*/
|
|
756
807
|
touchFlick(xoffset?: number, yoffset?: number, element?: string, speed?: number, xspeed?: number, yspeed?: number): Promise<void>;
|
|
@@ -758,7 +809,7 @@ export default interface AppiumCommands {
|
|
|
758
809
|
* Appium Protocol Command
|
|
759
810
|
*
|
|
760
811
|
* Get the current device orientation.
|
|
761
|
-
* @ref https://
|
|
812
|
+
* @ref https://appium.io/docs/en/latest/reference/api/jsonwp/#getorientation
|
|
762
813
|
*
|
|
763
814
|
*/
|
|
764
815
|
getOrientation(): Promise<string>;
|
|
@@ -766,7 +817,7 @@ export default interface AppiumCommands {
|
|
|
766
817
|
* Appium Protocol Command
|
|
767
818
|
*
|
|
768
819
|
* Set the device orientation
|
|
769
|
-
* @ref https://
|
|
820
|
+
* @ref https://appium.io/docs/en/latest/reference/api/jsonwp/#setorientation
|
|
770
821
|
*
|
|
771
822
|
*/
|
|
772
823
|
setOrientation(orientation: string): Promise<void>;
|
|
@@ -774,7 +825,7 @@ export default interface AppiumCommands {
|
|
|
774
825
|
* Appium Protocol Command
|
|
775
826
|
*
|
|
776
827
|
* Get the current geo location.
|
|
777
|
-
* @ref https://
|
|
828
|
+
* @ref https://appium.io/docs/en/latest/reference/api/jsonwp/#getgeolocation
|
|
778
829
|
*
|
|
779
830
|
*/
|
|
780
831
|
getGeoLocation(): Promise<ProtocolCommandResponse>;
|
|
@@ -782,7 +833,7 @@ export default interface AppiumCommands {
|
|
|
782
833
|
* Appium Protocol Command
|
|
783
834
|
*
|
|
784
835
|
* Set the current geo location.
|
|
785
|
-
* @ref https://
|
|
836
|
+
* @ref https://appium.io/docs/en/latest/reference/api/jsonwp/#setgeolocation
|
|
786
837
|
*
|
|
787
838
|
*/
|
|
788
839
|
setGeoLocation(location: object): Promise<void>;
|