Method: Selenium::WebDriver::Credential.encode

Defined in:
lib/selenium/webdriver/common/virtual_authenticator/credential.rb

.encode(byte_array) ⇒ Object

[View source]

37
38
39
# File 'lib/selenium/webdriver/common/virtual_authenticator/credential.rb', line 37

def encode(byte_array)
  Base64.urlsafe_encode64(byte_array&.pack('C*'))
end