Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added AddVirtualAuthenticator #290

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions selenium.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down