Other Protocols
The following is a list of endpoints supported in Appium that are defined in other protocols.
Chromedriver Protocol¶
The Chromedriver protocol is an extension of the W3C WebDriver protocol, supported in Appium clients using Chromedriver. It specifies both its own extension commands, as well as vendor-agnostic commands.
Warning
Endpoints specified by this protocol are not officially documented.
executeCdp¶
Executes a Chrome DevTools Protocol (CDP) method, using the implementation of the vendor identified
by :vendor
. Refer to the CDP documentation
for a list of available methods and their parameters.
Parameters¶
Name | Description | Type |
---|---|---|
cmd |
Name of the CDP method to execute | string |
params |
Parameters passed to the CDP method | object |
Response¶
any
- the result of executing the CDP method
Compute Pressure Protocol¶
The Compute Pressure protocol is an extension of the W3C WebDriver protocol.
createVirtualPressureSource¶
Compute Pressure documentation: Create Virtual Pressure Source
Creates a new virtual pressure source.
Parameters¶
Name |
Description | Type | Default |
---|---|---|---|
type |
Type of pressure source to create | string | |
supported? |
Whether the pressure source should be configured as supported | boolean | true |
Response¶
null
updateVirtualPressureSource¶
Compute Pressure documentation: Update Virtual Pressure Source
Updates the state of a virtual pressure source with the type identified by :pressureSourceType
.
Parameters¶
Name | Description | Type |
---|---|---|
sample |
Pressure state. Supported values are nominal , fair , serious , or critical . |
string |
Response¶
null
deleteVirtualPressureSource¶
Compute Pressure documentation: Delete Virtual Pressure Source
Deletes the virtual pressure source with the type identified by :pressureSourceType
.
Response¶
null
Custom Handlers Protocol¶
The Custom Handlers protocol is an extension of the W3C WebDriver protocol, defined by the HTML Standard specification.
setRPHRegistrationMode¶
Custom Handlers documentation: Set RPH Registration Mode
Sets the protocol handler automation mode, for processing registrations of custom protocol handlers.
By default, this mode is set to none
.
Parameters¶
Name | Description | Type |
---|---|---|
mode |
Automation mode to set. Supported values are autoAccept , autoReject , or none . |
string |
Response¶
null
Device Posture Protocol¶
The Device Posture protocol is an extension of the W3C WebDriver protocol.
setDevicePosture¶
Device Posture documentation: Set Device Posture
Sets the device posture, overriding the posture set by the device hardware.
Parameters¶
Name | Description | Type |
---|---|---|
posture |
Posture to which the device should be set. Supported values are continuous or folded . |
string |
Response¶
null
clearDevicePosture¶
Device Posture documentation: Clear Device Posture
Clears the previously set device posture, returning posture control back to the device hardware.
Response¶
null
Federated Credential Management Protocol¶
The Federated Credential Management protocol (FedCM) is an
extension of the W3C WebDriver protocol. Clients can enable this protocol by using the
fedcm:accounts
capability.
fedCMCancelDialog¶
FedCM documentation: Cancel Dialog
Cancels the currently open FedCM dialog.
Response¶
null
fedCMSelectAccount¶
FedCM documentation: Select Account
Selects an account to use for the currently open FedCM dialog.
Parameters¶
Name | Description | Type |
---|---|---|
accountIndex |
Index of the account in the list of available accounts | number |
Response¶
null
fedCMClickDialogButton¶
FedCM documentation: Click Dialog Button
Clicks a button in the currently open FedCM dialog.
Parameters¶
Name | Description | Type |
---|---|---|
dialogButton |
Identifier of the button to click. Must be set to ConfirmIdpLoginContinue . |
string |
Response¶
null
fedCMGetAccounts¶
FedCM documentation: Account List
Retrieves all accounts that the user can select in the currently open FedCM dialog.
Response¶
FedCMAccount[]
- an array of objects, where each object includes the following properties:
Name |
Description | Type |
---|---|---|
accountId |
Account ID | string |
email |
Account email | string |
name |
Account name | string |
givenName? |
Account given name | string |
pictureUrl? |
Account picture URL | string |
idpConfigUrl |
URL of the identity provider configuration file | string |
loginState |
Login state. Set to SignUp if the account is not connected, otherwise SignIn . |
string |
termsOfServiceUrl? |
Terms of Service URL of the website, if loginState is set to SignUp |
string |
privacyPolicyUrl? |
Privacy Policy URL of the website, if loginState is set to SignUp |
string |
fedCMGetTitle¶
FedCM documentation: Get Title
Retrieves the title and subtitle (if one exists) of the currently open FedCM dialog.
Response¶
FedCMDialogTitle
- an object with the following properties:
Name | Description | Type |
---|---|---|
title |
Dialog title | string |
subtitle? |
Dialog subtitle | string |
fedCMGetDialogType¶
FedCM documentation: Get Dialog Type
Retrieves the type of the currently open FedCM dialog.
Response¶
string
- can be set to AutoReauthn
, AccountChooser
, or ConfirmIdpLogin
fedCMSetDelayEnabled¶
FedCM documentation: Set Delay Enabled
Sets the state of the promise rejection delay, which is used to prevent information leakage about the logged in state of the user.
Parameters¶
Name | Description | Type |
---|---|---|
enabled |
Whether to enable the promise rejection delay | boolean |
Response¶
null
fedCMResetCooldown¶
FedCM documentation: Reset Cooldown
Resets the cooldown delay used after dismissing a FedCM dialog.
Response¶
null
Generic Sensor Protocol¶
The Generic Sensor protocol is an extension of the W3C WebDriver protocol.
createVirtualSensor¶
Generic Sensor documentation: Create Virtual Sensor
Creates a new virtual sensor.
Parameters¶
Name |
Description | Type | Default |
---|---|---|---|
type |
Type of sensor to create | string | |
connected? |
Whether the sensor should be configured as connected | boolean | true |
maxSamplingFrequency? |
Maximum sensor sampling frequency | number | |
minSamplingFrequency? |
Minimum sensor sampling frequency | number |
Response¶
null
getVirtualSensorInfo¶
Generic Sensor documentation: Get Virtual Sensor Information
Retrieves information about the virtual sensor with the type identified by :sensorType
.
Response¶
GetVirtualSensorInfoResponse
- an object containing the requestedSamplingFrequency
key, whose
value is the requested sampling frequency of the sensor type
updateVirtualSensorReading¶
Generic Sensor documentation: Update Virtual Sensor Reading
Updates the virtual sensor with the type identified by :sensorType
with a new reading.
Parameters¶
Name | Description | Type |
---|---|---|
reading |
Object containing reading properties specific to the sensor type | object |
Response¶
null
deleteVirtualSensor¶
Generic Sensor documentation: Delete Virtual Sensor
Deletes the virtual sensor with the type identified by :sensorType
.
Response¶
null
Permissions Protocol¶
The Permissions protocol is an extension of the W3C WebDriver protocol.
setPermissions¶
Permissions documentation: Set Permission
Simulates user modification of the permission state of a PermissionDescriptor (a permissible feature with optional additional properties).
Parameters¶
Name |
Description | Type |
---|---|---|
descriptor |
Object specifying the feature name in its name key, along with any other keys for additional properties |
object |
state |
New permission state for this descriptor. Supported values are: granted , denied , or prompt . |
string |
Response¶
null
Reporting Protocol¶
The Reporting protocol is an extension of the W3C WebDriver protocol.
generateTestReport¶
Reporting documentation: Generate Test Report
Simulates the generation of a test report, which can be retrieved by registered reporting observers.
Parameters¶
Name | Description | Type | Default |
---|---|---|---|
message |
Message displayed in the report | string | |
group? |
Destination group to deliver the report to | string | default |
Response¶
null
Secure Payment Confirmation Protocol¶
The Secure Payment Confirmation protocol (SPC) is an extension of the W3C WebDriver protocol.
setSPCTransactionMode¶
SPC documentation: Set SPC Transaction Mode
Sets the transaction automation mode, for automated handling of transaction confirmation prompts.
By default, this mode is set to none
.
Parameters¶
Name | Description | Type |
---|---|---|
mode |
Automation mode to set. Supported values are autoAccept , autoChooseToAuthAnotherWay , autoReject , or autoOptOut . |
string |
Response¶
null
Selenium Protocol¶
The Selenium protocol is an extension of the W3C WebDriver protocol, supported in Appium clients based on Selenium.
Warning
Endpoints specified by this protocol are not officially documented.
getLog¶
Retrieves the logs for a given log type. Supported log types depend on the driver, and can be
retrieved using the getLogTypes
endpoint.
Parameters¶
Name | Description | Type |
---|---|---|
type |
Type of log to retrieve | string |
Response¶
GetLogEntry[]
- an array of log entries.
Typically a log entry is an object with the following properties:
Name | Description | Type |
---|---|---|
level |
Level at which the message was logged | string |
message |
Contents of the actual log message | string |
timestamp |
Message timestamp (in milliseconds) in Unix format | number |
getLogTypes¶
Retrieves the available log types that can be used to call the getLog
endpoint.
Response¶
string[]
- an array of log types
Web Authentication Protocol¶
The Web Authentication protocol (WebAuthn) is an extension of
the W3C WebDriver protocol. Clients can enable this protocol by using the
webauthn:virtualAuthenticators
capability.
addVirtualAuthenticator¶
WebAuthn documentation: Add Virtual Authenticator
Creates a software virtual authenticator.
Parameters¶
Name |
Description | Type | Default |
---|---|---|---|
isUserConsenting? |
Whether to always grant user consent | boolean | true |
isUserVerified? |
Whether to always succeed in user verification. Ignored if hasUserVerification is set to false . |
boolean | false |
hasResidentKey? |
Whether client-side discoverable credentials are supported | boolean | false |
hasUserVerification? |
Whether user verification is supported | boolean | false |
protocol |
Protocol of this authenticator. Supported values are: ctap1/u2f , ctap2 , or ctap2_1 . |
string | |
transport |
Type of transport used to communicate with clients. Supported values are: ble , hybrid , internal , nfc , smart-card , or usb . |
string |
Response¶
string
- the ID of the created authenticator
removeVirtualAuthenticator¶
WebAuthn documentation: Remove Virtual Authenticator
Removes the virtual authenticator identified by :authenticatorId
.
Response¶
null
addAuthCredential¶
WebAuthn documentation: Add Credential
Injects a Public Key Credential Source
into the virtual authenticator identified by :authenticatorId
.
Parameters¶
Name |
Description | Type |
---|---|---|
credentialId |
Credential ID, in Base64url encoding | string |
isResidentCredential |
Whether to create a client-side discoverable credential. If set to false , a server-side credential is created instead. |
boolean |
privateKey |
Asymmetric key package containing a single private key, in Base64url encoding | string |
rpId |
Relying Party ID the credential is scoped to | string |
signCount? |
Initial value for the signature counter. Set to 0 if omitted. |
number |
userHandle? |
User handle associated with the credential, in Base64url encoding. Set to null if omitted. |
string |
Response¶
null
getAuthCredential¶
WebAuthn documentation: Get Credentials
Retrieves all Public Key Credential Sources stored in the virtual authenticator identified by
:authenticatorId
.
Response¶
Credential[]
- an array of credential objects. Each object has the following properties:
Name |
Description | Type | Default |
---|---|---|---|
credentialId |
Credential ID, in Base64url encoding | string | |
isResidentCredential |
Whether the credential is client-side discoverable (true ) or server-side (false ) |
boolean | |
largeBlob |
Large, per-credential blog, in Base64url encoding | string | null |
privateKey |
Asymmetric key package containing a single private key, in Base64url encoding | string | |
rpId |
Relying Party ID the credential is scoped to | string | |
signCount |
Initial value for the signature counter | number | 0 |
userHandle |
User handle associated with the credential, in Base64url encoding | string | null |
removeAuthCredential¶
WebAuthn documentation: Remove Credential
Removes the Public Key Credential Source identified by :credentialId
from the virtual authenticator
identified by :authenticatorId
.
Response¶
null
removeAllAuthCredentials¶
WebAuthn documentation: Remove All Credentials
Removes all Public Key Credential Sources from the virtual authenticator identified by
:authenticatorId
.
Response¶
null
setUserAuthVerified¶
WebAuthn documentation: Set User Verified
Sets the isUserVerified
property of the virtual authenticator identified by :authenticatorId
.
Parameters¶
Name | Description | Type |
---|---|---|
isUserVerified |
Whether to always succeed in user verification | boolean |
Response¶
null