Class: Selenium::WebDriver::BiDi::Cookies Private

Inherits:
Hash
  • Object
show all
Defined in:
lib/selenium/webdriver/bidi/network/cookies.rb

Overview

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

API:

  • private

Instance Method Summary collapse

Instance Method Details

#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.

API:

  • private



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/selenium/webdriver/bidi/network/cookies.rb', line 28

def as_json
  map do |name, val|
    {
      name: name.to_s,
      value: {
        type: 'string',
        value: val.to_s
      }
    }
  end
end