Class WebAuthn
java.lang.Object
org.openqa.selenium.devtools.v126.webauthn.WebAuthn
This domain allows configuring virtual authenticators to test the WebAuthn
API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openqa.selenium.devtools.Command<Void>
addCredential
(AuthenticatorId authenticatorId, Credential credential) Adds the credential to the specified authenticator.static org.openqa.selenium.devtools.Command<AuthenticatorId>
Creates and adds a virtual authenticator.static org.openqa.selenium.devtools.Command<Void>
clearCredentials
(AuthenticatorId authenticatorId) Clears all the credentials from the specified device.static org.openqa.selenium.devtools.Event<CredentialAdded>
static org.openqa.selenium.devtools.Event<CredentialAsserted>
static org.openqa.selenium.devtools.Command<Void>
disable()
Disable the WebAuthn domain.static org.openqa.selenium.devtools.Command<Void>
Enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator.static org.openqa.selenium.devtools.Command<Credential>
getCredential
(AuthenticatorId authenticatorId, String credentialId) Returns a single credential stored in the given virtual authenticator that matches the credential ID.static org.openqa.selenium.devtools.Command<List<Credential>>
getCredentials
(AuthenticatorId authenticatorId) Returns all the credentials stored in the given virtual authenticator.static org.openqa.selenium.devtools.Command<Void>
removeCredential
(AuthenticatorId authenticatorId, String credentialId) Removes a credential from the authenticator.static org.openqa.selenium.devtools.Command<Void>
removeVirtualAuthenticator
(AuthenticatorId authenticatorId) Removes the given authenticator.static org.openqa.selenium.devtools.Command<Void>
setAutomaticPresenceSimulation
(AuthenticatorId authenticatorId, Boolean enabled) Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator.static org.openqa.selenium.devtools.Command<Void>
setCredentialProperties
(AuthenticatorId authenticatorId, String credentialId, Optional<Boolean> backupEligibility, Optional<Boolean> backupState) Allows setting credential properties.static org.openqa.selenium.devtools.Command<Void>
setResponseOverrideBits
(AuthenticatorId authenticatorId, Optional<Boolean> isBogusSignature, Optional<Boolean> isBadUV, Optional<Boolean> isBadUP) Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are not present.static org.openqa.selenium.devtools.Command<Void>
setUserVerified
(AuthenticatorId authenticatorId, Boolean isUserVerified) Sets whether User Verification succeeds or fails for an authenticator.
-
Constructor Details
-
WebAuthn
public WebAuthn()
-
-
Method Details
-
enable
Enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator. -
disable
Disable the WebAuthn domain. -
addVirtualAuthenticator
public static org.openqa.selenium.devtools.Command<AuthenticatorId> addVirtualAuthenticator(VirtualAuthenticatorOptions options) Creates and adds a virtual authenticator. -
setResponseOverrideBits
public static org.openqa.selenium.devtools.Command<Void> setResponseOverrideBits(AuthenticatorId authenticatorId, Optional<Boolean> isBogusSignature, Optional<Boolean> isBadUV, Optional<Boolean> isBadUP) Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are not present. -
removeVirtualAuthenticator
public static org.openqa.selenium.devtools.Command<Void> removeVirtualAuthenticator(AuthenticatorId authenticatorId) Removes the given authenticator. -
addCredential
public static org.openqa.selenium.devtools.Command<Void> addCredential(AuthenticatorId authenticatorId, Credential credential) Adds the credential to the specified authenticator. -
getCredential
public static org.openqa.selenium.devtools.Command<Credential> getCredential(AuthenticatorId authenticatorId, String credentialId) Returns a single credential stored in the given virtual authenticator that matches the credential ID. -
getCredentials
public static org.openqa.selenium.devtools.Command<List<Credential>> getCredentials(AuthenticatorId authenticatorId) Returns all the credentials stored in the given virtual authenticator. -
removeCredential
public static org.openqa.selenium.devtools.Command<Void> removeCredential(AuthenticatorId authenticatorId, String credentialId) Removes a credential from the authenticator. -
clearCredentials
public static org.openqa.selenium.devtools.Command<Void> clearCredentials(AuthenticatorId authenticatorId) Clears all the credentials from the specified device. -
setUserVerified
public static org.openqa.selenium.devtools.Command<Void> setUserVerified(AuthenticatorId authenticatorId, Boolean isUserVerified) Sets whether User Verification succeeds or fails for an authenticator. The default is true. -
setAutomaticPresenceSimulation
public static org.openqa.selenium.devtools.Command<Void> setAutomaticPresenceSimulation(AuthenticatorId authenticatorId, Boolean enabled) Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator. The default is true. -
setCredentialProperties
public static org.openqa.selenium.devtools.Command<Void> setCredentialProperties(AuthenticatorId authenticatorId, String credentialId, Optional<Boolean> backupEligibility, Optional<Boolean> backupState) Allows setting credential properties. https://w3c.github.io/webauthn/#sctn-automation-set-credential-properties -
credentialAdded
-
credentialAsserted
-