Class: Selenium::WebDriver::BiDi::Protocol::Storage Private
| Relationships & Source Files | |
| Namespace Children | |
|
Classes:
| |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Domain
|
|
|
Instance Chain:
self,
Domain
|
|
| Inherits: |
Selenium::WebDriver::BiDi::Protocol::Domain
|
| Defined in: | rb/lib/selenium/webdriver/bidi/protocol/storage.rb |
Overview
Constant Summary
-
BrowsingContextPartitionDescriptor =
# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 59
Serialization::Record.define( type: {fixed: 'context'}, context: {wire_key: 'context', primitive: 'string'} )
-
CookieFilter =
# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 43
Serialization::Record.define( name: {wire_key: 'name', required: false, primitive: 'string'}, value: {wire_key: 'value', required: false, ref: 'Network::BytesValue'}, domain: {wire_key: 'domain', required: false, primitive: 'string'}, path: {wire_key: 'path', required: false, primitive: 'string'}, size: {wire_key: 'size', required: false, primitive: 'integer'}, http_only: {wire_key: 'httpOnly', required: false, primitive: 'boolean'}, secure: {wire_key: 'secure', required: false, primitive: 'boolean'}, same_site: {wire_key: 'sameSite', required: false, enum: 'Network::SAME_SITE'}, expiry: {wire_key: 'expiry', required: false, primitive: 'integer'}, extensible: true )
-
DeleteCookiesParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 138
Serialization::Record.define( filter: {wire_key: 'filter', required: false, ref: 'Storage::CookieFilter'}, partition: {wire_key: 'partition', required: false, ref: 'Storage::PartitionDescriptor'} )
-
DeleteCookiesResult =
# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 146
Serialization::Record.define( partition_key: {wire_key: 'partitionKey', ref: 'Storage::PartitionKey'} )
-
GetCookiesParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 92
Serialization::Record.define( filter: {wire_key: 'filter', required: false, ref: 'Storage::CookieFilter'}, partition: {wire_key: 'partition', required: false, ref: 'Storage::PartitionDescriptor'} )
-
GetCookiesResult =
# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 100
Serialization::Record.define( cookies: {wire_key: 'cookies', ref: 'Network::Cookie', list: true}, partition_key: {wire_key: 'partitionKey', ref: 'Storage::PartitionKey'} )
-
PartialCookie =
# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 108
Serialization::Record.define( name: {wire_key: 'name', primitive: 'string'}, value: {wire_key: 'value', ref: 'Network::BytesValue'}, domain: {wire_key: 'domain', primitive: 'string'}, path: {wire_key: 'path', required: false, primitive: 'string'}, http_only: {wire_key: 'httpOnly', required: false, primitive: 'boolean'}, secure: {wire_key: 'secure', required: false, primitive: 'boolean'}, same_site: {wire_key: 'sameSite', required: false, enum: 'Network::SAME_SITE'}, expiry: {wire_key: 'expiry', required: false, primitive: 'integer'}, extensible: true )
-
PartitionKey =
# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 34
Serialization::Record.define( user_context: {wire_key: 'userContext', required: false, primitive: 'string'}, source_origin: {wire_key: 'sourceOrigin', required: false, primitive: 'string'}, extensible: true )
-
SetCookieParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 123
Serialization::Record.define( cookie: {wire_key: 'cookie', ref: 'Storage::PartialCookie'}, partition: {wire_key: 'partition', required: false, ref: 'Storage::PartitionDescriptor'} )
-
SetCookieResult =
# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 131
Serialization::Record.define( partition_key: {wire_key: 'partitionKey', ref: 'Storage::PartitionKey'} )
-
StorageKeyPartitionDescriptor =
# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 67
Serialization::Record.define( type: {fixed: 'storageKey'}, user_context: {wire_key: 'userContext', required: false, primitive: 'string'}, source_origin: {wire_key: 'sourceOrigin', required: false, primitive: 'string'}, extensible: true )
Class Method Summary
Instance Method Summary
- #browsing_context_partition_descriptor Internal use only
- #cookie_filter Internal use only
- #delete_cookies(filter: Serialization::UNSET, partition: Serialization::UNSET) Internal use only
- #get_cookies(filter: Serialization::UNSET, partition: Serialization::UNSET) Internal use only
- #partial_cookie Internal use only
- #partition_descriptor Internal use only
- #set_cookie(cookie:, partition: Serialization::UNSET) Internal use only
- #storage_key_partition_descriptor Internal use only
Domain - Inherited
| #connection | The connection this domain runs over, so a generated vendor accessor can build its sibling variant ( |
| #execute | |
Constructor Details
This class inherits a constructor from Selenium::WebDriver::BiDi::Protocol::Domain
Instance Method Details
#browsing_context_partition_descriptor
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 151
def browsing_context_partition_descriptor(**) = BrowsingContextPartitionDescriptor.new(**)
#cookie_filter
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 150
def (**) = CookieFilter.new(**)
#delete_cookies(filter: Serialization::UNSET, partition: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 159
def (filter: Serialization::UNSET, partition: Serialization::UNSET) params = DeleteCookiesParameters.new(filter: filter, partition: partition) execute(cmd: 'storage.deleteCookies', params: params, result: Storage::DeleteCookiesResult) end
#get_cookies(filter: Serialization::UNSET, partition: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 167
def (filter: Serialization::UNSET, partition: Serialization::UNSET) params = GetCookiesParameters.new(filter: filter, partition: partition) execute(cmd: 'storage.getCookies', params: params, result: Storage::GetCookiesResult) end
#partial_cookie
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 154
def (**) = PartialCookie.new(**)
#partition_descriptor
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 153
def partition_descriptor = PartitionDescriptor
#set_cookie(cookie:, partition: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 175
def (cookie:, partition: Serialization::UNSET) params = SetCookieParameters.new(cookie: , partition: partition) execute(cmd: 'storage.setCookie', params: params, result: Storage::SetCookieResult) end
#storage_key_partition_descriptor
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/protocol/storage.rb', line 152
def storage_key_partition_descriptor(**) = StorageKeyPartitionDescriptor.new(**)