diff --git a/remote.go b/remote.go index 653b5f4..53fa1ac 100644 --- a/remote.go +++ b/remote.go @@ -1212,6 +1212,10 @@ func (wd *remoteWD) SetAlertText(text string) error { return wd.voidCommand("/session/%s/alert/text", data) } +func (wd *remoteWD) AddVirtualAuthenticator(params map[string]interface{}) error { + return wd.voidCommand("/session/%s/webauthn/authenticator", params) +} + func (wd *remoteWD) execScriptRaw(script string, args []interface{}, suffix string) ([]byte, error) { if args == nil { args = make([]interface{}, 0) diff --git a/selenium.go b/selenium.go index ecd8c91..dc2bcf8 100644 --- a/selenium.go +++ b/selenium.go @@ -422,6 +422,9 @@ type WebDriver interface { // perform JSON decoding. ExecuteScriptAsyncRaw(script string, args []interface{}) ([]byte, error) + // AddVirtualAuthenticator creates a software Virtual Authenticator. + AddVirtualAuthenticator(params map[string]interface{}) error + // WaitWithTimeoutAndInterval waits for the condition to evaluate to true. WaitWithTimeoutAndInterval(condition Condition, timeout, interval time.Duration) error