Method: Selenium::WebDriver::BiDi::Credentials#as_json

Defined in:
lib/selenium/webdriver/bidi/network/credentials.rb

#as_jsonObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



35
36
37
38
39
40
41
42
43
# File 'lib/selenium/webdriver/bidi/network/credentials.rb', line 35

def as_json
  return nil unless username && password

  {
    type: 'password',
    username: username,
    password: password
  }
end