Class: Selenium::WebDriver::BiDi::Protocol::BrowsingContext::DownloadEndParams Private
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
|
Instance Chain:
|
|
| Inherits: |
Selenium::WebDriver::BiDi::Serialization::Union
|
| Defined in: | rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb |
Overview
Constant Summary
-
CanceledParams =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 505
Serialization::Record.define( status: {fixed: 'canceled'}, download: {wire_key: 'download', primitive: 'string'}, context: {wire_key: 'context', primitive: 'string'}, navigation: {wire_key: 'navigation', nullable: true, primitive: 'string'}, timestamp: {wire_key: 'timestamp', primitive: 'integer'}, url: {wire_key: 'url', primitive: 'string'}, user_context: {wire_key: 'userContext', required: false, primitive: 'string'} )
-
CompleteParams =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 517
Serialization::Record.define( status: {fixed: 'complete'}, download: {wire_key: 'download', primitive: 'string'}, filepath: {wire_key: 'filepath', nullable: true, primitive: 'string'}, context: {wire_key: 'context', primitive: 'string'}, navigation: {wire_key: 'navigation', nullable: true, primitive: 'string'}, timestamp: {wire_key: 'timestamp', primitive: 'integer'}, url: {wire_key: 'url', primitive: 'string'}, user_context: {wire_key: 'userContext', required: false, primitive: 'string'} )
Class Method Summary
::Selenium::WebDriver::BiDi::Serialization::Union - Inherited
| .build | Outbound mirror of from_json: build the variant the command's kwargs describe so its typed as_json drives null-vs-absent per field (a flat hash through |
| .discriminator | values maps each variant's discriminator symbol to its wire token, so an inbound payload tag (a wire string) can be matched to the symbol-keyed table. |
| .fallback, | |
| .from_json | A non-Hash payload is a bare scalar arm (e.g. |
| .object_only | Declared (via the schema's |
| .presence, .variants, | |
| .outbound_variant | An explicit nil kwarg still counts as supplied; a non-nullable field set to nil is rejected at construction (Data.new), not here. |
| .payload_tag | The wire tag mapped back to its variant symbol (the table's key); an unrecognized tag falls through as-is so select misses and from_json raises. |
| .select | The discriminator value may legitimately be null (e.g. |
| .variant_for | The matching variant's ref, or nil when none matches (the fallback if declared). |