Other Protocols
The following is a list of endpoints used 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
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.
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