@wdio/protocols 9.16.0 → 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
package/build/index.js
CHANGED
|
@@ -67,19 +67,19 @@ var webdriver_default = {
|
|
|
67
67
|
parameters: [
|
|
68
68
|
{
|
|
69
69
|
name: "implicit",
|
|
70
|
-
type: "number",
|
|
70
|
+
type: "(number|null)",
|
|
71
71
|
description: "integer in ms for session implicit wait timeout",
|
|
72
72
|
required: false
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
name: "pageLoad",
|
|
76
|
-
type: "number",
|
|
76
|
+
type: "(number|null)",
|
|
77
77
|
description: "integer in ms for session page load timeout",
|
|
78
78
|
required: false
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
name: "script",
|
|
82
|
-
type: "number",
|
|
82
|
+
type: "(number|null)",
|
|
83
83
|
description: "integer in ms for session script timeout",
|
|
84
84
|
required: false
|
|
85
85
|
}
|
|
@@ -1362,13 +1362,13 @@ var webdriver_default = {
|
|
|
1362
1362
|
name: "protocol",
|
|
1363
1363
|
type: "string",
|
|
1364
1364
|
description: "Valid values: 'ctap1/u2f', 'ctap2', 'ctap2_1'.",
|
|
1365
|
-
required:
|
|
1365
|
+
required: true
|
|
1366
1366
|
},
|
|
1367
1367
|
{
|
|
1368
1368
|
name: "transport",
|
|
1369
1369
|
type: "string",
|
|
1370
1370
|
description: "Valid values: 'usb', 'nfc', 'ble' or 'internal'.",
|
|
1371
|
-
required:
|
|
1371
|
+
required: true
|
|
1372
1372
|
},
|
|
1373
1373
|
{
|
|
1374
1374
|
name: "hasResidentKey",
|
|
@@ -1391,19 +1391,19 @@ var webdriver_default = {
|
|
|
1391
1391
|
{
|
|
1392
1392
|
name: "isUserVerified",
|
|
1393
1393
|
type: "boolean",
|
|
1394
|
-
description: "Valid values:
|
|
1394
|
+
description: "Valid values: true, false.",
|
|
1395
1395
|
required: false
|
|
1396
1396
|
},
|
|
1397
1397
|
{
|
|
1398
1398
|
name: "extensions",
|
|
1399
1399
|
type: "string[]",
|
|
1400
|
-
description: "
|
|
1400
|
+
description: "An array of extension identifiers",
|
|
1401
1401
|
required: false
|
|
1402
1402
|
},
|
|
1403
1403
|
{
|
|
1404
1404
|
name: "uvm",
|
|
1405
1405
|
type: "object[]",
|
|
1406
|
-
description: "",
|
|
1406
|
+
description: "Valid values: Up to 3 User Verification Method entries.",
|
|
1407
1407
|
required: false
|
|
1408
1408
|
}
|
|
1409
1409
|
],
|
|
@@ -1468,13 +1468,13 @@ var webdriver_default = {
|
|
|
1468
1468
|
name: "userHandle",
|
|
1469
1469
|
type: "string",
|
|
1470
1470
|
description: "The userHandle associated to the credential encoded using Base64url Encoding. This property may not be defined.",
|
|
1471
|
-
required:
|
|
1471
|
+
required: false
|
|
1472
1472
|
},
|
|
1473
1473
|
{
|
|
1474
1474
|
name: "signCount",
|
|
1475
|
-
type: "number",
|
|
1475
|
+
type: "(number|null)",
|
|
1476
1476
|
description: "The initial value for a signature counter associated to the public key credential source.",
|
|
1477
|
-
required:
|
|
1477
|
+
required: false
|
|
1478
1478
|
},
|
|
1479
1479
|
{
|
|
1480
1480
|
name: "largeBlob",
|
|
@@ -1545,7 +1545,14 @@ var webdriver_default = {
|
|
|
1545
1545
|
description: "id of authenticator"
|
|
1546
1546
|
}
|
|
1547
1547
|
],
|
|
1548
|
-
parameters: [
|
|
1548
|
+
parameters: [
|
|
1549
|
+
{
|
|
1550
|
+
name: "isUserVerified",
|
|
1551
|
+
type: "boolean",
|
|
1552
|
+
description: "Whether to always succeed in user verification",
|
|
1553
|
+
required: true
|
|
1554
|
+
}
|
|
1555
|
+
]
|
|
1549
1556
|
}
|
|
1550
1557
|
}
|
|
1551
1558
|
};
|
|
@@ -2403,6 +2410,7 @@ var mjsonwp_default = {
|
|
|
2403
2410
|
GET: {
|
|
2404
2411
|
command: "getNetworkConnection",
|
|
2405
2412
|
ref: "https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-modes",
|
|
2413
|
+
deprecated: "For Appium Android automation, use `driver.execute('mobile: getConnectivity', { ... })` instead",
|
|
2406
2414
|
parameters: [],
|
|
2407
2415
|
returns: {
|
|
2408
2416
|
type: "number",
|
|
@@ -2413,6 +2421,7 @@ var mjsonwp_default = {
|
|
|
2413
2421
|
POST: {
|
|
2414
2422
|
command: "setNetworkConnection",
|
|
2415
2423
|
ref: "https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-modes",
|
|
2424
|
+
deprecated: "For Appium Android automation, use `driver.execute('mobile: setConnectivity', { ... })` instead",
|
|
2416
2425
|
parameters: [
|
|
2417
2426
|
{
|
|
2418
2427
|
name: "type",
|
|
@@ -2427,6 +2436,7 @@ var mjsonwp_default = {
|
|
|
2427
2436
|
GET: {
|
|
2428
2437
|
command: "touchPerform",
|
|
2429
2438
|
ref: "https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#touch-gestures",
|
|
2439
|
+
deprecated: "For Appium, use `driver.performActions(...)` instead",
|
|
2430
2440
|
parameters: [
|
|
2431
2441
|
{
|
|
2432
2442
|
name: "actions",
|
|
@@ -2441,6 +2451,7 @@ var mjsonwp_default = {
|
|
|
2441
2451
|
GET: {
|
|
2442
2452
|
command: "multiTouchPerform",
|
|
2443
2453
|
ref: "https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#touch-gestures",
|
|
2454
|
+
deprecated: "For Appium, use `driver.performActions(...)` instead",
|
|
2444
2455
|
parameters: [
|
|
2445
2456
|
{
|
|
2446
2457
|
name: "actions",
|
|
@@ -2460,6 +2471,7 @@ var mjsonwp_default = {
|
|
|
2460
2471
|
POST: {
|
|
2461
2472
|
command: "receiveAsyncResponse",
|
|
2462
2473
|
ref: "https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#mobile-json-wire-protocol-endpoints",
|
|
2474
|
+
deprecated: "For Appium, use `driver.executeAsyncScript(...)` instead",
|
|
2463
2475
|
parameters: [
|
|
2464
2476
|
{
|
|
2465
2477
|
name: "status",
|
|
@@ -3023,7 +3035,7 @@ var appium_default = {
|
|
|
3023
3035
|
GET: {
|
|
3024
3036
|
command: "getSession",
|
|
3025
3037
|
description: "Retrieve the capabilities of the current session.",
|
|
3026
|
-
ref: "https://
|
|
3038
|
+
ref: "https://appium.io/docs/en/latest/reference/api/jsonwp/#getsession",
|
|
3027
3039
|
deprecated: "Use `getAppiumSessionCapabilities` instead",
|
|
3028
3040
|
parameters: [],
|
|
3029
3041
|
returns: {
|
|
@@ -3036,7 +3048,7 @@ var appium_default = {
|
|
|
3036
3048
|
"/session/:sessionId/context": {
|
|
3037
3049
|
GET: {
|
|
3038
3050
|
command: "getAppiumContext",
|
|
3039
|
-
ref: "https://
|
|
3051
|
+
ref: "https://appium.io/docs/en/latest/reference/api/mjsonwp/#getcurrentcontext",
|
|
3040
3052
|
parameters: [],
|
|
3041
3053
|
returns: {
|
|
3042
3054
|
type: "Context",
|
|
@@ -3046,7 +3058,7 @@ var appium_default = {
|
|
|
3046
3058
|
},
|
|
3047
3059
|
POST: {
|
|
3048
3060
|
command: "switchAppiumContext",
|
|
3049
|
-
ref: "https://
|
|
3061
|
+
ref: "https://appium.io/docs/en/latest/reference/api/mjsonwp/#setcontext",
|
|
3050
3062
|
parameters: [
|
|
3051
3063
|
{
|
|
3052
3064
|
name: "name",
|
|
@@ -3060,7 +3072,7 @@ var appium_default = {
|
|
|
3060
3072
|
"/session/:sessionId/contexts": {
|
|
3061
3073
|
GET: {
|
|
3062
3074
|
command: "getAppiumContexts",
|
|
3063
|
-
ref: "https://
|
|
3075
|
+
ref: "https://appium.io/docs/en/latest/reference/api/mjsonwp/#getcontexts",
|
|
3064
3076
|
parameters: [],
|
|
3065
3077
|
returns: {
|
|
3066
3078
|
type: "Context[]",
|
|
@@ -3073,7 +3085,7 @@ var appium_default = {
|
|
|
3073
3085
|
GET: {
|
|
3074
3086
|
command: "getAppiumCommands",
|
|
3075
3087
|
description: "Retrieve the endpoints and BiDi commands supported in the current session.",
|
|
3076
|
-
ref: "https://
|
|
3088
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#listcommands",
|
|
3077
3089
|
parameters: [],
|
|
3078
3090
|
returns: {
|
|
3079
3091
|
type: "Object",
|
|
@@ -3086,7 +3098,7 @@ var appium_default = {
|
|
|
3086
3098
|
GET: {
|
|
3087
3099
|
command: "getAppiumExtensions",
|
|
3088
3100
|
description: "Retrieve the extension commands supported in the current session.",
|
|
3089
|
-
ref: "https://
|
|
3101
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#listextensions",
|
|
3090
3102
|
parameters: [],
|
|
3091
3103
|
returns: {
|
|
3092
3104
|
type: "Object",
|
|
@@ -3099,7 +3111,7 @@ var appium_default = {
|
|
|
3099
3111
|
GET: {
|
|
3100
3112
|
command: "getAppiumSessionCapabilities",
|
|
3101
3113
|
description: "Retrieve the capabilities of the current session.",
|
|
3102
|
-
ref: "https://
|
|
3114
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#getappiumsessioncapabilities",
|
|
3103
3115
|
parameters: [],
|
|
3104
3116
|
returns: {
|
|
3105
3117
|
type: "Object",
|
|
@@ -3113,6 +3125,7 @@ var appium_default = {
|
|
|
3113
3125
|
command: "shake",
|
|
3114
3126
|
description: "Perform a shake action on the device.",
|
|
3115
3127
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/interactions/shake/",
|
|
3128
|
+
deprecated: "Use `driver.execute('mobile: shake')` instead",
|
|
3116
3129
|
parameters: [],
|
|
3117
3130
|
support: {
|
|
3118
3131
|
ios: {
|
|
@@ -3127,6 +3140,7 @@ var appium_default = {
|
|
|
3127
3140
|
command: "lock",
|
|
3128
3141
|
description: "Lock the device.",
|
|
3129
3142
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/interactions/lock/",
|
|
3143
|
+
deprecated: "Use `driver.execute('mobile: lock', { ... })` instead",
|
|
3130
3144
|
parameters: [
|
|
3131
3145
|
{
|
|
3132
3146
|
name: "seconds",
|
|
@@ -3153,6 +3167,7 @@ var appium_default = {
|
|
|
3153
3167
|
command: "unlock",
|
|
3154
3168
|
description: "Unlock the device.",
|
|
3155
3169
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/interactions/unlock/",
|
|
3170
|
+
deprecated: "Use `driver.execute('mobile: unlock')` instead",
|
|
3156
3171
|
parameters: [],
|
|
3157
3172
|
support: {
|
|
3158
3173
|
android: {
|
|
@@ -3169,6 +3184,7 @@ var appium_default = {
|
|
|
3169
3184
|
command: "isLocked",
|
|
3170
3185
|
description: "Check whether the device is locked or not.",
|
|
3171
3186
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/interactions/is-locked/",
|
|
3187
|
+
deprecated: "Use `driver.execute('mobile: isLocked')` instead",
|
|
3172
3188
|
parameters: [],
|
|
3173
3189
|
returns: {
|
|
3174
3190
|
type: "boolean",
|
|
@@ -3265,6 +3281,7 @@ var appium_default = {
|
|
|
3265
3281
|
command: "getPerformanceDataTypes",
|
|
3266
3282
|
description: "Returns the information types of the system state which is supported to read as like cpu, memory, network traffic, and battery.",
|
|
3267
3283
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/performance-data/performance-data-types/",
|
|
3284
|
+
deprecated: "Use `driver.execute('mobile: getPerformanceDataTypes')` instead",
|
|
3268
3285
|
parameters: [],
|
|
3269
3286
|
returns: {
|
|
3270
3287
|
type: "string[]",
|
|
@@ -3283,6 +3300,7 @@ var appium_default = {
|
|
|
3283
3300
|
command: "getPerformanceData",
|
|
3284
3301
|
description: "Returns the information of the system state which is supported to read as like cpu, memory, network traffic, and battery.",
|
|
3285
3302
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/performance-data/get-performance-data/",
|
|
3303
|
+
deprecated: "Use `driver.execute('mobile: getPerformanceData', { ... })` instead",
|
|
3286
3304
|
parameters: [
|
|
3287
3305
|
{
|
|
3288
3306
|
name: "packageName",
|
|
@@ -3320,6 +3338,7 @@ var appium_default = {
|
|
|
3320
3338
|
command: "pressKeyCode",
|
|
3321
3339
|
description: "Press a particular key on the device.",
|
|
3322
3340
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/keys/press-keycode/",
|
|
3341
|
+
deprecated: "Use `driver.execute('mobile: pressKey', { ... })` instead",
|
|
3323
3342
|
parameters: [
|
|
3324
3343
|
{
|
|
3325
3344
|
name: "keycode",
|
|
@@ -3352,6 +3371,7 @@ var appium_default = {
|
|
|
3352
3371
|
command: "longPressKeyCode",
|
|
3353
3372
|
description: "Press and hold a particular key code on the device.",
|
|
3354
3373
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/keys/long-press-keycode/",
|
|
3374
|
+
deprecated: "Use `driver.execute('mobile: pressKey', { ... })` instead",
|
|
3355
3375
|
parameters: [
|
|
3356
3376
|
{
|
|
3357
3377
|
name: "keycode",
|
|
@@ -3384,6 +3404,7 @@ var appium_default = {
|
|
|
3384
3404
|
command: "sendKeyEvent",
|
|
3385
3405
|
description: "Send a key code to the device.",
|
|
3386
3406
|
ref: "https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints",
|
|
3407
|
+
deprecated: "Use `driver.execute('mobile: pressKey', { ... })` instead",
|
|
3387
3408
|
parameters: [
|
|
3388
3409
|
{
|
|
3389
3410
|
name: "keycode",
|
|
@@ -3409,7 +3430,7 @@ var appium_default = {
|
|
|
3409
3430
|
POST: {
|
|
3410
3431
|
command: "rotateDevice",
|
|
3411
3432
|
description: "Rotate the device in three dimensions.",
|
|
3412
|
-
ref: "https://
|
|
3433
|
+
ref: "https://appium.io/docs/en/latest/reference/api/mjsonwp/#setrotation",
|
|
3413
3434
|
parameters: [
|
|
3414
3435
|
{
|
|
3415
3436
|
name: "x",
|
|
@@ -3448,6 +3469,7 @@ var appium_default = {
|
|
|
3448
3469
|
command: "getCurrentActivity",
|
|
3449
3470
|
description: "Get the name of the current Android activity.",
|
|
3450
3471
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/activity/current-activity/",
|
|
3472
|
+
deprecated: "Use `driver.execute('mobile: getCurrentActivity')` instead",
|
|
3451
3473
|
parameters: [],
|
|
3452
3474
|
returns: {
|
|
3453
3475
|
type: "string",
|
|
@@ -3466,6 +3488,7 @@ var appium_default = {
|
|
|
3466
3488
|
command: "getCurrentPackage",
|
|
3467
3489
|
description: "Get the name of the current Android package.",
|
|
3468
3490
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/activity/current-package/",
|
|
3491
|
+
deprecated: "Use `driver.execute('mobile: getCurrentPackage')` instead",
|
|
3469
3492
|
parameters: [],
|
|
3470
3493
|
returns: {
|
|
3471
3494
|
type: "string",
|
|
@@ -3483,13 +3506,19 @@ var appium_default = {
|
|
|
3483
3506
|
POST: {
|
|
3484
3507
|
command: "installApp",
|
|
3485
3508
|
description: "Install the given app onto the device.",
|
|
3486
|
-
ref: "https://appium.
|
|
3509
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#installapp",
|
|
3487
3510
|
parameters: [
|
|
3488
3511
|
{
|
|
3489
3512
|
name: "appPath",
|
|
3490
3513
|
type: "string",
|
|
3491
|
-
description: "
|
|
3514
|
+
description: "Path to application .apk file",
|
|
3492
3515
|
required: true
|
|
3516
|
+
},
|
|
3517
|
+
{
|
|
3518
|
+
name: "options",
|
|
3519
|
+
type: "object",
|
|
3520
|
+
description: "Driver-specific installation options",
|
|
3521
|
+
required: false
|
|
3493
3522
|
}
|
|
3494
3523
|
],
|
|
3495
3524
|
support: {
|
|
@@ -3506,14 +3535,26 @@ var appium_default = {
|
|
|
3506
3535
|
"/session/:sessionId/appium/device/activate_app": {
|
|
3507
3536
|
POST: {
|
|
3508
3537
|
command: "activateApp",
|
|
3509
|
-
description: "Activate the given app
|
|
3510
|
-
ref: "https://appium.
|
|
3538
|
+
description: "Activate the given app on the device",
|
|
3539
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#activateapp",
|
|
3511
3540
|
parameters: [
|
|
3512
3541
|
{
|
|
3513
3542
|
name: "appId",
|
|
3514
3543
|
type: "string",
|
|
3515
|
-
description: "App ID (
|
|
3516
|
-
required:
|
|
3544
|
+
description: "App package ID (required for Android)",
|
|
3545
|
+
required: false
|
|
3546
|
+
},
|
|
3547
|
+
{
|
|
3548
|
+
name: "bundleId",
|
|
3549
|
+
type: "string",
|
|
3550
|
+
description: "Bundle ID (required for iOS)",
|
|
3551
|
+
required: false
|
|
3552
|
+
},
|
|
3553
|
+
{
|
|
3554
|
+
name: "options",
|
|
3555
|
+
type: "object",
|
|
3556
|
+
description: "Driver-specific launch options",
|
|
3557
|
+
required: false
|
|
3517
3558
|
}
|
|
3518
3559
|
],
|
|
3519
3560
|
support: {
|
|
@@ -3530,15 +3571,32 @@ var appium_default = {
|
|
|
3530
3571
|
POST: {
|
|
3531
3572
|
command: "removeApp",
|
|
3532
3573
|
description: "Remove an app from the device.",
|
|
3533
|
-
ref: "https://appium.
|
|
3574
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#removeapp",
|
|
3534
3575
|
parameters: [
|
|
3535
3576
|
{
|
|
3536
3577
|
name: "appId",
|
|
3537
3578
|
type: "string",
|
|
3538
|
-
description: "App ID (
|
|
3539
|
-
required:
|
|
3579
|
+
description: "App package ID (required for Android)",
|
|
3580
|
+
required: false
|
|
3581
|
+
},
|
|
3582
|
+
{
|
|
3583
|
+
name: "bundleId",
|
|
3584
|
+
type: "string",
|
|
3585
|
+
description: "Bundle ID (required for iOS)",
|
|
3586
|
+
required: false
|
|
3587
|
+
},
|
|
3588
|
+
{
|
|
3589
|
+
name: "options",
|
|
3590
|
+
type: "object",
|
|
3591
|
+
description: "Driver-specific uninstall options",
|
|
3592
|
+
required: false
|
|
3540
3593
|
}
|
|
3541
3594
|
],
|
|
3595
|
+
returns: {
|
|
3596
|
+
type: "boolean",
|
|
3597
|
+
name: "didRemovalSucceed",
|
|
3598
|
+
description: "Return true if uninstall was successful, false if not"
|
|
3599
|
+
},
|
|
3542
3600
|
support: {
|
|
3543
3601
|
ios: {
|
|
3544
3602
|
XCUITest: "9.3+",
|
|
@@ -3554,18 +3612,24 @@ var appium_default = {
|
|
|
3554
3612
|
POST: {
|
|
3555
3613
|
command: "terminateApp",
|
|
3556
3614
|
description: "Terminate the given app on the device",
|
|
3557
|
-
ref: "https://appium.
|
|
3615
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#terminateapp",
|
|
3558
3616
|
parameters: [
|
|
3559
3617
|
{
|
|
3560
3618
|
name: "appId",
|
|
3561
3619
|
type: "string",
|
|
3562
|
-
description: "App ID (
|
|
3563
|
-
required:
|
|
3620
|
+
description: "App package ID (required for Android)",
|
|
3621
|
+
required: false
|
|
3622
|
+
},
|
|
3623
|
+
{
|
|
3624
|
+
name: "bundleId",
|
|
3625
|
+
type: "string",
|
|
3626
|
+
description: "Bundle ID (required for iOS)",
|
|
3627
|
+
required: false
|
|
3564
3628
|
},
|
|
3565
3629
|
{
|
|
3566
3630
|
name: "options",
|
|
3567
3631
|
type: "object",
|
|
3568
|
-
description:
|
|
3632
|
+
description: "Driver-specific termination options",
|
|
3569
3633
|
required: false
|
|
3570
3634
|
}
|
|
3571
3635
|
],
|
|
@@ -3583,13 +3647,19 @@ var appium_default = {
|
|
|
3583
3647
|
POST: {
|
|
3584
3648
|
command: "isAppInstalled",
|
|
3585
3649
|
description: "Check whether the specified app is installed on the device.",
|
|
3586
|
-
ref: "https://appium.
|
|
3650
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#isappinstalled",
|
|
3587
3651
|
parameters: [
|
|
3588
3652
|
{
|
|
3589
3653
|
name: "appId",
|
|
3590
3654
|
type: "string",
|
|
3591
|
-
description: "App ID (
|
|
3592
|
-
required:
|
|
3655
|
+
description: "App package ID (required for Android)",
|
|
3656
|
+
required: false
|
|
3657
|
+
},
|
|
3658
|
+
{
|
|
3659
|
+
name: "bundleId",
|
|
3660
|
+
type: "string",
|
|
3661
|
+
description: "Bundle ID (required for iOS)",
|
|
3662
|
+
required: false
|
|
3593
3663
|
}
|
|
3594
3664
|
],
|
|
3595
3665
|
returns: {
|
|
@@ -3612,19 +3682,25 @@ var appium_default = {
|
|
|
3612
3682
|
POST: {
|
|
3613
3683
|
command: "queryAppState",
|
|
3614
3684
|
description: "Get the given app status on the device",
|
|
3615
|
-
ref: "https://appium.
|
|
3685
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#queryappstate",
|
|
3616
3686
|
parameters: [
|
|
3617
3687
|
{
|
|
3618
3688
|
name: "appId",
|
|
3619
3689
|
type: "string",
|
|
3620
|
-
description: "App ID (
|
|
3621
|
-
required:
|
|
3690
|
+
description: "App package ID (required for Android)",
|
|
3691
|
+
required: false
|
|
3692
|
+
},
|
|
3693
|
+
{
|
|
3694
|
+
name: "bundleId",
|
|
3695
|
+
type: "string",
|
|
3696
|
+
description: "Bundle ID (required for iOS)",
|
|
3697
|
+
required: false
|
|
3622
3698
|
}
|
|
3623
3699
|
],
|
|
3624
3700
|
returns: {
|
|
3625
3701
|
type: "number",
|
|
3626
3702
|
name: "appStatus",
|
|
3627
|
-
description: "0 is not installed. 1 is not running. 2 is running in background
|
|
3703
|
+
description: "0 is not installed. 1 is not running. 2 is running in background suspended. 3 is running in background. 4 is running in foreground"
|
|
3628
3704
|
},
|
|
3629
3705
|
support: {
|
|
3630
3706
|
ios: {
|
|
@@ -3640,7 +3716,7 @@ var appium_default = {
|
|
|
3640
3716
|
POST: {
|
|
3641
3717
|
command: "hideKeyboard",
|
|
3642
3718
|
description: "Hide soft keyboard.",
|
|
3643
|
-
ref: "https://appium.
|
|
3719
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#hidekeyboard",
|
|
3644
3720
|
parameters: [
|
|
3645
3721
|
{
|
|
3646
3722
|
name: "strategy",
|
|
@@ -3685,7 +3761,7 @@ var appium_default = {
|
|
|
3685
3761
|
GET: {
|
|
3686
3762
|
command: "isKeyboardShown",
|
|
3687
3763
|
description: "Whether or not the soft keyboard is shown.",
|
|
3688
|
-
ref: "https://appium.
|
|
3764
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#iskeyboardshown",
|
|
3689
3765
|
parameters: [],
|
|
3690
3766
|
returns: {
|
|
3691
3767
|
type: "boolean",
|
|
@@ -3710,7 +3786,7 @@ var appium_default = {
|
|
|
3710
3786
|
POST: {
|
|
3711
3787
|
command: "pushFile",
|
|
3712
3788
|
description: "Place a file onto the device in a particular place.",
|
|
3713
|
-
ref: "https://appium.
|
|
3789
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#pushfile",
|
|
3714
3790
|
parameters: [
|
|
3715
3791
|
{
|
|
3716
3792
|
name: "path",
|
|
@@ -3743,7 +3819,7 @@ var appium_default = {
|
|
|
3743
3819
|
POST: {
|
|
3744
3820
|
command: "pullFile",
|
|
3745
3821
|
description: "Retrieve a file from the device's file system.",
|
|
3746
|
-
ref: "https://appium.
|
|
3822
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#pullfile",
|
|
3747
3823
|
parameters: [
|
|
3748
3824
|
{
|
|
3749
3825
|
name: "path",
|
|
@@ -3775,7 +3851,7 @@ var appium_default = {
|
|
|
3775
3851
|
POST: {
|
|
3776
3852
|
command: "pullFolder",
|
|
3777
3853
|
description: "Retrieve a folder from the device's file system.",
|
|
3778
|
-
ref: "https://appium.
|
|
3854
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#pullfolder",
|
|
3779
3855
|
parameters: [
|
|
3780
3856
|
{
|
|
3781
3857
|
name: "path",
|
|
@@ -3784,6 +3860,11 @@ var appium_default = {
|
|
|
3784
3860
|
required: true
|
|
3785
3861
|
}
|
|
3786
3862
|
],
|
|
3863
|
+
returns: {
|
|
3864
|
+
type: "string",
|
|
3865
|
+
name: "response",
|
|
3866
|
+
description: "Zip file of the folder contents in base64"
|
|
3867
|
+
},
|
|
3787
3868
|
support: {
|
|
3788
3869
|
ios: {
|
|
3789
3870
|
XCUITest: "9.3+",
|
|
@@ -3803,6 +3884,7 @@ var appium_default = {
|
|
|
3803
3884
|
command: "toggleAirplaneMode",
|
|
3804
3885
|
description: "Toggle airplane mode on device.",
|
|
3805
3886
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-airplane-mode/",
|
|
3887
|
+
deprecated: "Use `driver.execute('mobile: setConnectivity', { ... })` instead",
|
|
3806
3888
|
parameters: [],
|
|
3807
3889
|
support: {
|
|
3808
3890
|
android: {
|
|
@@ -3816,6 +3898,7 @@ var appium_default = {
|
|
|
3816
3898
|
command: "toggleData",
|
|
3817
3899
|
description: "Switch the state of data service.",
|
|
3818
3900
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-data/",
|
|
3901
|
+
deprecated: "Use `driver.execute('mobile: setConnectivity', { ... })` instead",
|
|
3819
3902
|
parameters: [],
|
|
3820
3903
|
support: {
|
|
3821
3904
|
android: {
|
|
@@ -3829,6 +3912,7 @@ var appium_default = {
|
|
|
3829
3912
|
command: "toggleWiFi",
|
|
3830
3913
|
description: "Switch the state of the wifi service.",
|
|
3831
3914
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-wifi/",
|
|
3915
|
+
deprecated: "Use `driver.execute('mobile: setConnectivity', { ... })` instead",
|
|
3832
3916
|
parameters: [],
|
|
3833
3917
|
support: {
|
|
3834
3918
|
android: {
|
|
@@ -3842,6 +3926,7 @@ var appium_default = {
|
|
|
3842
3926
|
command: "toggleLocationServices",
|
|
3843
3927
|
description: "Switch the state of the location service.",
|
|
3844
3928
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-location-services/",
|
|
3929
|
+
deprecated: "Use `driver.execute('mobile: toggleGps')` instead",
|
|
3845
3930
|
parameters: [],
|
|
3846
3931
|
support: {
|
|
3847
3932
|
android: {
|
|
@@ -3855,6 +3940,7 @@ var appium_default = {
|
|
|
3855
3940
|
command: "toggleNetworkSpeed",
|
|
3856
3941
|
description: "Set network speed (Emulator only)",
|
|
3857
3942
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/network/network-speed/",
|
|
3943
|
+
deprecated: "Use `driver.execute('mobile: networkSpeed', { ... })` instead",
|
|
3858
3944
|
parameters: [
|
|
3859
3945
|
{
|
|
3860
3946
|
name: "netspeed",
|
|
@@ -3873,8 +3959,9 @@ var appium_default = {
|
|
|
3873
3959
|
"/session/:sessionId/appium/device/open_notifications": {
|
|
3874
3960
|
POST: {
|
|
3875
3961
|
command: "openNotifications",
|
|
3876
|
-
description: "Open Android notifications
|
|
3962
|
+
description: "Open Android notifications.",
|
|
3877
3963
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/system/open-notifications/",
|
|
3964
|
+
deprecated: "Use `driver.execute('mobile: openNotifications')` or `driver.execute('mobile: statusBar', { ... })` instead",
|
|
3878
3965
|
parameters: [],
|
|
3879
3966
|
support: {
|
|
3880
3967
|
android: {
|
|
@@ -3888,6 +3975,7 @@ var appium_default = {
|
|
|
3888
3975
|
command: "startActivity",
|
|
3889
3976
|
description: "Start an Android activity by providing package name and activity name.",
|
|
3890
3977
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/activity/start-activity/",
|
|
3978
|
+
deprecated: "Use `driver.execute('mobile: startActivity', { ... })` instead",
|
|
3891
3979
|
parameters: [
|
|
3892
3980
|
{
|
|
3893
3981
|
name: "appPackage",
|
|
@@ -3959,6 +4047,7 @@ var appium_default = {
|
|
|
3959
4047
|
command: "getSystemBars",
|
|
3960
4048
|
description: "Retrieve visibility and bounds information of the status and navigation bars.",
|
|
3961
4049
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/system/system-bars/",
|
|
4050
|
+
deprecated: "Use `driver.execute('mobile: getSystemBars')` instead",
|
|
3962
4051
|
parameters: [],
|
|
3963
4052
|
returns: {
|
|
3964
4053
|
type: "object[]",
|
|
@@ -3999,6 +4088,7 @@ var appium_default = {
|
|
|
3999
4088
|
command: "getDisplayDensity",
|
|
4000
4089
|
description: "Get display density from device.",
|
|
4001
4090
|
ref: "https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints",
|
|
4091
|
+
deprecated: "Use `driver.execute('mobile: getDisplayDensity')` instead",
|
|
4002
4092
|
parameters: [],
|
|
4003
4093
|
returns: {
|
|
4004
4094
|
type: "*",
|
|
@@ -4016,6 +4106,7 @@ var appium_default = {
|
|
|
4016
4106
|
command: "touchId",
|
|
4017
4107
|
description: "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.",
|
|
4018
4108
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/simulator/touch-id/",
|
|
4109
|
+
deprecated: "Use `driver.execute('mobile: sendBiometricMatch', { ... })` instead",
|
|
4019
4110
|
parameters: [
|
|
4020
4111
|
{
|
|
4021
4112
|
name: "match",
|
|
@@ -4036,6 +4127,7 @@ var appium_default = {
|
|
|
4036
4127
|
command: "toggleEnrollTouchId",
|
|
4037
4128
|
description: "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.",
|
|
4038
4129
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/simulator/toggle-touch-id-enrollment/",
|
|
4130
|
+
deprecated: "Use `driver.execute('mobile: enrollBiometric', { ... })` instead",
|
|
4039
4131
|
parameters: [
|
|
4040
4132
|
{
|
|
4041
4133
|
name: "enabled",
|
|
@@ -4057,7 +4149,7 @@ var appium_default = {
|
|
|
4057
4149
|
command: "launchApp",
|
|
4058
4150
|
description: "Launch an app on device.",
|
|
4059
4151
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/app/launch-app/",
|
|
4060
|
-
deprecated: "
|
|
4152
|
+
deprecated: "Use `driver.execute('mobile: launchApp', { ... })` (iOS) or `driver.execute('mobile: activateApp', { ... })` (Android) instead",
|
|
4061
4153
|
parameters: [],
|
|
4062
4154
|
support: {
|
|
4063
4155
|
ios: {
|
|
@@ -4098,7 +4190,7 @@ var appium_default = {
|
|
|
4098
4190
|
{
|
|
4099
4191
|
name: "seconds",
|
|
4100
4192
|
type: "(number|null)",
|
|
4101
|
-
description: "
|
|
4193
|
+
description: "Timeout after which to restore the app. A value of -1 disables the timeout",
|
|
4102
4194
|
required: true,
|
|
4103
4195
|
default: "null"
|
|
4104
4196
|
}
|
|
@@ -4119,6 +4211,7 @@ var appium_default = {
|
|
|
4119
4211
|
command: "endCoverage",
|
|
4120
4212
|
description: "Get test coverage data.",
|
|
4121
4213
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/app/end-test-coverage/",
|
|
4214
|
+
deprecated: "Use `driver.execute('mobile: shell', { ... })` instead",
|
|
4122
4215
|
parameters: [
|
|
4123
4216
|
{
|
|
4124
4217
|
name: "intent",
|
|
@@ -4145,6 +4238,7 @@ var appium_default = {
|
|
|
4145
4238
|
command: "getStrings",
|
|
4146
4239
|
description: "Get app strings.",
|
|
4147
4240
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/app/get-app-strings/",
|
|
4241
|
+
deprecated: "Use `driver.execute('mobile: getAppStrings', { ... })` instead",
|
|
4148
4242
|
parameters: [
|
|
4149
4243
|
{
|
|
4150
4244
|
name: "language",
|
|
@@ -4179,6 +4273,7 @@ var appium_default = {
|
|
|
4179
4273
|
POST: {
|
|
4180
4274
|
command: "setValueImmediate",
|
|
4181
4275
|
ref: "https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints",
|
|
4276
|
+
deprecated: "Use `driver.addValue(...)` or `driver.setValue(...)` instead",
|
|
4182
4277
|
variables: [
|
|
4183
4278
|
{
|
|
4184
4279
|
name: "elementId",
|
|
@@ -4208,6 +4303,7 @@ var appium_default = {
|
|
|
4208
4303
|
command: "replaceValue",
|
|
4209
4304
|
description: "Replace the value to element directly.",
|
|
4210
4305
|
ref: "https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints",
|
|
4306
|
+
deprecated: "Use `driver.addValue(...)` or `driver.setValue(...)` instead",
|
|
4211
4307
|
variables: [
|
|
4212
4308
|
{
|
|
4213
4309
|
name: "elementId",
|
|
@@ -4236,8 +4332,8 @@ var appium_default = {
|
|
|
4236
4332
|
"/session/:sessionId/appium/settings": {
|
|
4237
4333
|
GET: {
|
|
4238
4334
|
command: "getSettings",
|
|
4239
|
-
description: "Retrieve the current settings
|
|
4240
|
-
ref: "https://appium.
|
|
4335
|
+
description: "Retrieve the current session settings.",
|
|
4336
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#getsettings",
|
|
4241
4337
|
parameters: [],
|
|
4242
4338
|
returns: {
|
|
4243
4339
|
type: "object",
|
|
@@ -4259,8 +4355,8 @@ var appium_default = {
|
|
|
4259
4355
|
},
|
|
4260
4356
|
POST: {
|
|
4261
4357
|
command: "updateSettings",
|
|
4262
|
-
description: "Update the
|
|
4263
|
-
ref: "https://appium.
|
|
4358
|
+
description: "Update the session settings.",
|
|
4359
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#updatesettings",
|
|
4264
4360
|
parameters: [
|
|
4265
4361
|
{
|
|
4266
4362
|
name: "settings",
|
|
@@ -4288,6 +4384,7 @@ var appium_default = {
|
|
|
4288
4384
|
command: "receiveAsyncResponse",
|
|
4289
4385
|
description: "Callback url for asynchronous execution of JavaScript.",
|
|
4290
4386
|
ref: "https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints",
|
|
4387
|
+
deprecated: "Use `driver.executeAsyncScript(...)` instead",
|
|
4291
4388
|
parameters: [
|
|
4292
4389
|
{
|
|
4293
4390
|
name: "response",
|
|
@@ -4309,6 +4406,7 @@ var appium_default = {
|
|
|
4309
4406
|
command: "gsmCall",
|
|
4310
4407
|
description: "Make GSM call (Emulator only).",
|
|
4311
4408
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/network/gsm-call/",
|
|
4409
|
+
deprecated: "Use `driver.execute('mobile: gsmCall', { ... })` instead",
|
|
4312
4410
|
parameters: [
|
|
4313
4411
|
{
|
|
4314
4412
|
name: "phoneNumber",
|
|
@@ -4335,6 +4433,7 @@ var appium_default = {
|
|
|
4335
4433
|
command: "gsmSignal",
|
|
4336
4434
|
description: "Set GSM signal strength (Emulator only).",
|
|
4337
4435
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/network/gsm-signal/",
|
|
4436
|
+
deprecated: "Use `driver.execute('mobile: gsmSignal', { ... })` instead",
|
|
4338
4437
|
parameters: [
|
|
4339
4438
|
{
|
|
4340
4439
|
name: "signalStrength",
|
|
@@ -4361,6 +4460,7 @@ var appium_default = {
|
|
|
4361
4460
|
command: "powerCapacity",
|
|
4362
4461
|
description: "Set the battery percentage (Emulator only).",
|
|
4363
4462
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/emulator/power_capacity/",
|
|
4463
|
+
deprecated: "Use `driver.execute('mobile: powerCapacity', { ... })` instead",
|
|
4364
4464
|
parameters: [
|
|
4365
4465
|
{
|
|
4366
4466
|
name: "percent",
|
|
@@ -4381,6 +4481,7 @@ var appium_default = {
|
|
|
4381
4481
|
command: "powerAC",
|
|
4382
4482
|
description: "Set the state of the battery charger to connected or not (Emulator only).",
|
|
4383
4483
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/emulator/power_ac/",
|
|
4484
|
+
deprecated: "Use `driver.execute('mobile: powerAC', { ... })` instead",
|
|
4384
4485
|
parameters: [
|
|
4385
4486
|
{
|
|
4386
4487
|
name: "state",
|
|
@@ -4401,6 +4502,7 @@ var appium_default = {
|
|
|
4401
4502
|
command: "gsmVoice",
|
|
4402
4503
|
description: "Set GSM voice state (Emulator only).",
|
|
4403
4504
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/network/gsm-voice/",
|
|
4505
|
+
deprecated: "Use `driver.execute('mobile: gsmVoice', { ... })` instead",
|
|
4404
4506
|
parameters: [
|
|
4405
4507
|
{
|
|
4406
4508
|
name: "state",
|
|
@@ -4421,6 +4523,7 @@ var appium_default = {
|
|
|
4421
4523
|
command: "sendSms",
|
|
4422
4524
|
description: "Simulate an SMS message (Emulator only).",
|
|
4423
4525
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/network/send-sms/",
|
|
4526
|
+
deprecated: "Use `driver.execute('mobile: sendSms', { ... })` instead",
|
|
4424
4527
|
parameters: [
|
|
4425
4528
|
{
|
|
4426
4529
|
name: "phoneNumber",
|
|
@@ -4447,6 +4550,7 @@ var appium_default = {
|
|
|
4447
4550
|
command: "fingerPrint",
|
|
4448
4551
|
description: "Authenticate users by using their finger print scans on supported emulators.",
|
|
4449
4552
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/authentication/finger-print/",
|
|
4553
|
+
deprecated: "Use `driver.execute('mobile: fingerPrint', { ... })` instead",
|
|
4450
4554
|
parameters: [
|
|
4451
4555
|
{
|
|
4452
4556
|
name: "fingerprintId",
|
|
@@ -4467,6 +4571,7 @@ var appium_default = {
|
|
|
4467
4571
|
command: "setClipboard",
|
|
4468
4572
|
description: "Set the content of the system clipboard",
|
|
4469
4573
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/clipboard/set-clipboard/",
|
|
4574
|
+
deprecated: "Use `driver.execute('mobile: setClipboard', { ... })` instead",
|
|
4470
4575
|
parameters: [
|
|
4471
4576
|
{
|
|
4472
4577
|
name: "content",
|
|
@@ -4507,6 +4612,7 @@ var appium_default = {
|
|
|
4507
4612
|
command: "getClipboard",
|
|
4508
4613
|
description: "Get the content of the system clipboard",
|
|
4509
4614
|
ref: "https://appium.github.io/appium.io/docs/en/commands/device/clipboard/get-clipboard/",
|
|
4615
|
+
deprecated: "Use `driver.execute('mobile: getClipboard', { ... })` instead",
|
|
4510
4616
|
parameters: [
|
|
4511
4617
|
{
|
|
4512
4618
|
name: "contentType",
|
|
@@ -4535,6 +4641,7 @@ var appium_default = {
|
|
|
4535
4641
|
command: "touchPerform",
|
|
4536
4642
|
description: "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.",
|
|
4537
4643
|
ref: "https://appium.github.io/appium.io/docs/en/commands/interactions/touch/touch-perform/",
|
|
4644
|
+
deprecated: "Use `driver.performActions(...)` instead",
|
|
4538
4645
|
parameters: [
|
|
4539
4646
|
{
|
|
4540
4647
|
name: "actions",
|
|
@@ -4601,6 +4708,7 @@ var appium_default = {
|
|
|
4601
4708
|
command: "multiTouchPerform",
|
|
4602
4709
|
description: "This functionality is only available from within a native context. Perform a multi touch action sequence.",
|
|
4603
4710
|
ref: "https://appium.github.io/appium.io/docs/en/commands/interactions/touch/multi-touch-perform/",
|
|
4711
|
+
deprecated: "Use `driver.performActions(...)` instead",
|
|
4604
4712
|
parameters: [
|
|
4605
4713
|
{
|
|
4606
4714
|
name: "actions",
|
|
@@ -4626,8 +4734,8 @@ var appium_default = {
|
|
|
4626
4734
|
"/session/:sessionId/appium/execute_driver": {
|
|
4627
4735
|
POST: {
|
|
4628
4736
|
command: "executeDriverScript",
|
|
4629
|
-
description: "
|
|
4630
|
-
ref: "https://
|
|
4737
|
+
description: "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.***",
|
|
4738
|
+
ref: "https://appium.io/docs/en/latest/reference/api/plugins/#executedriverscript",
|
|
4631
4739
|
parameters: [
|
|
4632
4740
|
{
|
|
4633
4741
|
name: "script",
|
|
@@ -4658,14 +4766,14 @@ var appium_default = {
|
|
|
4658
4766
|
"/session/:sessionId/appium/events": {
|
|
4659
4767
|
POST: {
|
|
4660
4768
|
command: "getEvents",
|
|
4661
|
-
description: "Get events
|
|
4662
|
-
ref: "https://
|
|
4769
|
+
description: "Get events logged in the current session.",
|
|
4770
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#getlogevents",
|
|
4663
4771
|
parameters: [
|
|
4664
4772
|
{
|
|
4665
4773
|
name: "type",
|
|
4666
|
-
type: "string[]",
|
|
4667
|
-
description: "
|
|
4668
|
-
required:
|
|
4774
|
+
type: "(string|string[])",
|
|
4775
|
+
description: "One or more event types to filter the returned events",
|
|
4776
|
+
required: false
|
|
4669
4777
|
}
|
|
4670
4778
|
],
|
|
4671
4779
|
returns: {
|
|
@@ -4686,19 +4794,19 @@ var appium_default = {
|
|
|
4686
4794
|
"/session/:sessionId/appium/log_event": {
|
|
4687
4795
|
POST: {
|
|
4688
4796
|
command: "logEvent",
|
|
4689
|
-
description: "
|
|
4690
|
-
ref: "https://
|
|
4797
|
+
description: "Log a custom event.",
|
|
4798
|
+
ref: "https://appium.io/docs/en/latest/reference/api/appium/#logcustomevent",
|
|
4691
4799
|
parameters: [
|
|
4692
4800
|
{
|
|
4693
4801
|
name: "vendor",
|
|
4694
4802
|
type: "string",
|
|
4695
|
-
description: "
|
|
4803
|
+
description: "Name of the namespace (vendor) used to prefix the event",
|
|
4696
4804
|
required: true
|
|
4697
4805
|
},
|
|
4698
4806
|
{
|
|
4699
4807
|
name: "event",
|
|
4700
4808
|
type: "string",
|
|
4701
|
-
description: "
|
|
4809
|
+
description: "Name of the event",
|
|
4702
4810
|
required: true
|
|
4703
4811
|
}
|
|
4704
4812
|
],
|
|
@@ -4715,40 +4823,39 @@ var appium_default = {
|
|
|
4715
4823
|
"/session/:sessionId/appium/compare_images": {
|
|
4716
4824
|
POST: {
|
|
4717
4825
|
command: "compareImages",
|
|
4718
|
-
description: "
|
|
4719
|
-
ref: "https://
|
|
4826
|
+
description: "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.***",
|
|
4827
|
+
ref: "https://appium.io/docs/en/latest/reference/api/plugins/#compareimages",
|
|
4720
4828
|
parameters: [
|
|
4721
4829
|
{
|
|
4722
4830
|
name: "mode",
|
|
4723
4831
|
type: "string",
|
|
4724
|
-
description: "One of possible comparison modes: 'matchFeatures', 'getSimilarity', 'matchTemplate'.
|
|
4725
|
-
required: true
|
|
4726
|
-
default: "matchFeatures"
|
|
4832
|
+
description: "One of possible comparison modes: 'matchFeatures', 'getSimilarity', 'matchTemplate'.",
|
|
4833
|
+
required: true
|
|
4727
4834
|
},
|
|
4728
4835
|
{
|
|
4729
4836
|
name: "firstImage",
|
|
4730
4837
|
type: "string",
|
|
4731
|
-
description: "
|
|
4838
|
+
description: "Base64-encoded image file.",
|
|
4732
4839
|
required: true
|
|
4733
4840
|
},
|
|
4734
4841
|
{
|
|
4735
4842
|
name: "secondImage",
|
|
4736
4843
|
type: "string",
|
|
4737
|
-
description: "
|
|
4844
|
+
description: "Base64-encoded image file.",
|
|
4738
4845
|
required: true
|
|
4739
4846
|
},
|
|
4740
4847
|
{
|
|
4741
4848
|
name: "options",
|
|
4742
4849
|
type: "object",
|
|
4743
|
-
description: "The
|
|
4744
|
-
required:
|
|
4850
|
+
description: "The supported values of this property depend on the `mode` value. See Appium documentation for more details.",
|
|
4851
|
+
required: false,
|
|
4745
4852
|
default: {}
|
|
4746
4853
|
}
|
|
4747
4854
|
],
|
|
4748
4855
|
returns: {
|
|
4749
4856
|
type: "object",
|
|
4750
4857
|
name: "result",
|
|
4751
|
-
description: "The content of the resulting dictionary depends on the
|
|
4858
|
+
description: "The content of the resulting dictionary depends on the `mode` and `options` values. See Appium documentation for more details."
|
|
4752
4859
|
}
|
|
4753
4860
|
}
|
|
4754
4861
|
},
|
|
@@ -4757,6 +4864,7 @@ var appium_default = {
|
|
|
4757
4864
|
command: "implicitWait",
|
|
4758
4865
|
description: "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.",
|
|
4759
4866
|
ref: "https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints",
|
|
4867
|
+
deprecated: "Use `driver.setTimeouts(...)` instead",
|
|
4760
4868
|
parameters: [
|
|
4761
4869
|
{
|
|
4762
4870
|
name: "ms",
|
|
@@ -4780,6 +4888,7 @@ var appium_default = {
|
|
|
4780
4888
|
command: "getLocationInView",
|
|
4781
4889
|
description: "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.",
|
|
4782
4890
|
ref: "https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints",
|
|
4891
|
+
deprecated: "Use `driver.getElementRect(...)` or `element.getLocation()` instead",
|
|
4783
4892
|
variables: [
|
|
4784
4893
|
{
|
|
4785
4894
|
name: "elementId",
|
|
@@ -4807,6 +4916,7 @@ var appium_default = {
|
|
|
4807
4916
|
command: "sendKeys",
|
|
4808
4917
|
description: "Send a sequence of key strokes to the active element",
|
|
4809
4918
|
ref: "https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints",
|
|
4919
|
+
deprecated: "Use `driver.performActions(...)` with `keyUp` and `keyDown` actions instead",
|
|
4810
4920
|
parameters: [
|
|
4811
4921
|
{
|
|
4812
4922
|
name: "value",
|
|
@@ -4828,8 +4938,8 @@ var appium_default = {
|
|
|
4828
4938
|
"/session/:sessionId/ime/available_engines": {
|
|
4829
4939
|
GET: {
|
|
4830
4940
|
command: "availableIMEEngines",
|
|
4831
|
-
description: "List all available engines on the
|
|
4832
|
-
ref: "https://
|
|
4941
|
+
description: "List all available IME engines on the device. To use an engine, it has to be present in this list.",
|
|
4942
|
+
ref: "https://appium.io/docs/en/latest/reference/api/jsonwp/#availableimeengines",
|
|
4833
4943
|
parameters: [],
|
|
4834
4944
|
returns: {
|
|
4835
4945
|
type: "String[]",
|
|
@@ -4847,7 +4957,7 @@ var appium_default = {
|
|
|
4847
4957
|
GET: {
|
|
4848
4958
|
command: "getActiveIMEEngine",
|
|
4849
4959
|
description: "Get the name of the active IME engine. The name string is platform specific.",
|
|
4850
|
-
ref: "https://
|
|
4960
|
+
ref: "https://appium.io/docs/en/latest/reference/api/jsonwp/#getactiveimeengine",
|
|
4851
4961
|
parameters: [],
|
|
4852
4962
|
returns: {
|
|
4853
4963
|
type: "String",
|
|
@@ -4865,7 +4975,7 @@ var appium_default = {
|
|
|
4865
4975
|
GET: {
|
|
4866
4976
|
command: "isIMEActivated",
|
|
4867
4977
|
description: "Indicates whether IME input is active at the moment",
|
|
4868
|
-
ref: "https://
|
|
4978
|
+
ref: "https://appium.io/docs/en/latest/reference/api/jsonwp/#isimeactivated",
|
|
4869
4979
|
parameters: [],
|
|
4870
4980
|
returns: {
|
|
4871
4981
|
type: "Boolean",
|
|
@@ -4883,7 +4993,7 @@ var appium_default = {
|
|
|
4883
4993
|
POST: {
|
|
4884
4994
|
command: "deactivateIMEEngine",
|
|
4885
4995
|
description: "De-activates the currently-active IME engine.",
|
|
4886
|
-
ref: "https://
|
|
4996
|
+
ref: "https://appium.io/docs/en/latest/reference/api/jsonwp/#deactivateimeengine",
|
|
4887
4997
|
parameters: [],
|
|
4888
4998
|
support: {
|
|
4889
4999
|
android: {
|
|
@@ -4895,8 +5005,8 @@ var appium_default = {
|
|
|
4895
5005
|
"/session/:sessionId/ime/activate": {
|
|
4896
5006
|
POST: {
|
|
4897
5007
|
command: "activateIMEEngine",
|
|
4898
|
-
description: "
|
|
4899
|
-
ref: "https://
|
|
5008
|
+
description: "Activates an IME engine.",
|
|
5009
|
+
ref: "https://appium.io/docs/en/latest/reference/api/jsonwp/#activateimeengine",
|
|
4900
5010
|
parameters: [
|
|
4901
5011
|
{
|
|
4902
5012
|
name: "engine",
|
|
@@ -4917,6 +5027,7 @@ var appium_default = {
|
|
|
4917
5027
|
command: "asyncScriptTimeout",
|
|
4918
5028
|
description: "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.",
|
|
4919
5029
|
ref: "https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints",
|
|
5030
|
+
deprecated: "Use `driver.setTimeouts(...)` instead",
|
|
4920
5031
|
parameters: [
|
|
4921
5032
|
{
|
|
4922
5033
|
name: "ms",
|
|
@@ -4937,6 +5048,7 @@ var appium_default = {
|
|
|
4937
5048
|
command: "submit",
|
|
4938
5049
|
description: "Submit a form element.",
|
|
4939
5050
|
ref: "https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints",
|
|
5051
|
+
deprecated: "Please explicitly find and click the submit element",
|
|
4940
5052
|
variables: [
|
|
4941
5053
|
{
|
|
4942
5054
|
name: "elementId",
|
|
@@ -4956,6 +5068,7 @@ var appium_default = {
|
|
|
4956
5068
|
command: "getElementSize",
|
|
4957
5069
|
description: "Determine an element's size in pixels. The size will be returned as a JSON object with `width` and `height` properties.",
|
|
4958
5070
|
ref: "https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints",
|
|
5071
|
+
deprecated: "Use `driver.getElementRect(...)` or `element.getSize()` instead",
|
|
4959
5072
|
variables: [
|
|
4960
5073
|
{
|
|
4961
5074
|
name: "elementId",
|
|
@@ -4983,6 +5096,7 @@ var appium_default = {
|
|
|
4983
5096
|
command: "getElementLocation",
|
|
4984
5097
|
description: "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.",
|
|
4985
5098
|
ref: "https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints",
|
|
5099
|
+
deprecated: "Use `driver.getElementRect(...)` or `element.getLocation()` instead",
|
|
4986
5100
|
variables: [
|
|
4987
5101
|
{
|
|
4988
5102
|
name: "elementId",
|
|
@@ -5010,6 +5124,7 @@ var appium_default = {
|
|
|
5010
5124
|
command: "touchClick",
|
|
5011
5125
|
description: "Single tap on the touch enabled device.",
|
|
5012
5126
|
ref: "https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints",
|
|
5127
|
+
deprecated: "Use `driver.performActions(...)` with `pointerDown` and `pointerUp` actions instead",
|
|
5013
5128
|
parameters: [
|
|
5014
5129
|
{
|
|
5015
5130
|
name: "element",
|
|
@@ -5033,6 +5148,7 @@ var appium_default = {
|
|
|
5033
5148
|
command: "touchDown",
|
|
5034
5149
|
description: "Finger down on the screen.",
|
|
5035
5150
|
ref: "https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints",
|
|
5151
|
+
deprecated: "Use `driver.performActions(...)` with a `pointerDown` action instead",
|
|
5036
5152
|
parameters: [
|
|
5037
5153
|
{
|
|
5038
5154
|
name: "x",
|
|
@@ -5059,6 +5175,7 @@ var appium_default = {
|
|
|
5059
5175
|
command: "touchUp",
|
|
5060
5176
|
description: "Finger up on the screen.",
|
|
5061
5177
|
ref: "https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints",
|
|
5178
|
+
deprecated: "Use `driver.performActions(...)` with a `pointerUp` action instead",
|
|
5062
5179
|
parameters: [
|
|
5063
5180
|
{
|
|
5064
5181
|
name: "x",
|
|
@@ -5085,6 +5202,7 @@ var appium_default = {
|
|
|
5085
5202
|
command: "touchMove",
|
|
5086
5203
|
description: "Finger move on the screen.",
|
|
5087
5204
|
ref: "https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints",
|
|
5205
|
+
deprecated: "Use `driver.performActions(...)` with a `pointerMove` action instead",
|
|
5088
5206
|
parameters: [
|
|
5089
5207
|
{
|
|
5090
5208
|
name: "x",
|
|
@@ -5111,6 +5229,7 @@ var appium_default = {
|
|
|
5111
5229
|
command: "touchLongClick",
|
|
5112
5230
|
description: "Long press on the touch screen using finger motion events.",
|
|
5113
5231
|
ref: "https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints",
|
|
5232
|
+
deprecated: "Use `driver.performActions(...)` with `pointerDown`, `pause` and `pointerUp` actions instead",
|
|
5114
5233
|
parameters: [
|
|
5115
5234
|
{
|
|
5116
5235
|
name: "element",
|
|
@@ -5131,6 +5250,7 @@ var appium_default = {
|
|
|
5131
5250
|
command: "touchFlick",
|
|
5132
5251
|
description: "Flick on the touch screen using finger motion events. This flick command starts at a particular screen location.",
|
|
5133
5252
|
ref: "https://github.com/appium/appium/blob/master/packages/base-driver/docs/mjsonwp/protocol-methods.md#webdriver-endpoints",
|
|
5253
|
+
deprecated: "Use `driver.performActions(...)` with `pointerDown`, `pointerMove` and `pointerUp` actions instead",
|
|
5134
5254
|
parameters: [
|
|
5135
5255
|
{
|
|
5136
5256
|
name: "xoffset",
|
|
@@ -5180,7 +5300,7 @@ var appium_default = {
|
|
|
5180
5300
|
GET: {
|
|
5181
5301
|
command: "getOrientation",
|
|
5182
5302
|
description: "Get the current device orientation.",
|
|
5183
|
-
ref: "https://
|
|
5303
|
+
ref: "https://appium.io/docs/en/latest/reference/api/jsonwp/#getorientation",
|
|
5184
5304
|
parameters: [],
|
|
5185
5305
|
returns: {
|
|
5186
5306
|
type: "String",
|
|
@@ -5199,7 +5319,7 @@ var appium_default = {
|
|
|
5199
5319
|
POST: {
|
|
5200
5320
|
command: "setOrientation",
|
|
5201
5321
|
description: "Set the device orientation",
|
|
5202
|
-
ref: "https://
|
|
5322
|
+
ref: "https://appium.io/docs/en/latest/reference/api/jsonwp/#setorientation",
|
|
5203
5323
|
parameters: [
|
|
5204
5324
|
{
|
|
5205
5325
|
name: "orientation",
|
|
@@ -5222,7 +5342,7 @@ var appium_default = {
|
|
|
5222
5342
|
GET: {
|
|
5223
5343
|
command: "getGeoLocation",
|
|
5224
5344
|
description: "Get the current geo location.",
|
|
5225
|
-
ref: "https://
|
|
5345
|
+
ref: "https://appium.io/docs/en/latest/reference/api/jsonwp/#getgeolocation",
|
|
5226
5346
|
parameters: [],
|
|
5227
5347
|
returns: {
|
|
5228
5348
|
type: "Object",
|
|
@@ -5233,7 +5353,7 @@ var appium_default = {
|
|
|
5233
5353
|
POST: {
|
|
5234
5354
|
command: "setGeoLocation",
|
|
5235
5355
|
description: "Set the current geo location.",
|
|
5236
|
-
ref: "https://
|
|
5356
|
+
ref: "https://appium.io/docs/en/latest/reference/api/jsonwp/#setgeolocation",
|
|
5237
5357
|
parameters: [
|
|
5238
5358
|
{
|
|
5239
5359
|
name: "location",
|