From 6b87f403109944987e289a8a0d031ccbceb8cf4d Mon Sep 17 00:00:00 2001 From: Robert Laszczak Date: Wed, 8 Jun 2022 08:49:14 +0200 Subject: [PATCH] Added AddVirtualAuthenticator --- remote.go | 4 ++++ selenium.go | 3 +++ 2 files changed, 7 insertions(+) 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