Class: Booth::Test::Webauthn::VirtualAuthenticators::Create

Inherits:
Object
  • Object
show all
Includes:
Logging, MethodObject
Defined in:
lib/booth/test/webauthn/virtual_authenticators/create.rb

Instance Method Summary collapse

Methods included from MethodObject

included

Instance Method Details

#callObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/booth/test/webauthn/virtual_authenticators/create.rb', line 12

def call
  options = ::Selenium::WebDriver::VirtualAuthenticatorOptions.new
  options.user_verification = has_user_verification
  options.user_verified = true

  debug { "Registering Virtual Authenticator... #{options.as_json}" }
  page.driver.browser.add_virtual_authenticator(options)

  # debug { "Created #{authenticator.id}" }
end