Class: Selenium::WebDriver::BiDi::Protocol::Network Private
- Defined in:
- lib/selenium/webdriver/bidi/protocol/network.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.
Defined Under Namespace
Classes: BytesValue, ContinueWithAuthParameters, UrlPattern
Constant Summary collapse
- EVENTS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ auth_required: 'network.authRequired', before_request_sent: 'network.beforeRequestSent', fetch_error: 'network.fetchError', response_completed: 'network.responseCompleted', response_started: 'network.responseStarted' }.freeze
- COLLECTOR_TYPE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ blob: 'blob' }.freeze
- SAME_SITE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ strict: 'strict', lax: 'lax', none: 'none', default: 'default' }.freeze
- DATA_TYPE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ request: 'request', response: 'response' }.freeze
- INTERCEPT_PHASE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ before_request_sent: 'beforeRequestSent', response_started: 'responseStarted', auth_required: 'authRequired' }.freeze
- INITIATOR_TYPE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ parser: 'parser', script: 'script', preflight: 'preflight', other: 'other' }.freeze
- CONTINUE_WITH_AUTH_NO_CREDENTIALS_ACTION =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ default: 'default', cancel: 'cancel' }.freeze
- SET_CACHE_BEHAVIOR_PARAMETERS_CACHE_BEHAVIOR =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ default: 'default', bypass: 'bypass' }.freeze
- AuthChallenge =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( scheme: {wire_key: 'scheme', primitive: 'string'}, realm: {wire_key: 'realm', primitive: 'string'} )
- AuthCredentials =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( type: {fixed: 'password'}, username: {wire_key: 'username', primitive: 'string'}, password: {wire_key: 'password', primitive: 'string'} )
- BaseParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( context: {wire_key: 'context', nullable: true, primitive: 'string'}, is_blocked: {wire_key: 'isBlocked', primitive: 'boolean'}, navigation: {wire_key: 'navigation', nullable: true, primitive: 'string'}, redirect_count: {wire_key: 'redirectCount', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, request: {wire_key: 'request', ref: 'Network::RequestData'}, timestamp: {wire_key: 'timestamp', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, user_context: {wire_key: 'userContext', required: false, nullable: true, primitive: 'string'}, intercepts: {wire_key: 'intercepts', required: false, list: true, primitive: 'string'} )
- StringValue =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( type: {fixed: 'string'}, value: {wire_key: 'value', primitive: 'string'} )
- Base64Value =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( type: {fixed: 'base64'}, value: {wire_key: 'value', primitive: 'string'} )
- Cookie =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
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', primitive: 'string'}, size: {wire_key: 'size', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, http_only: {wire_key: 'httpOnly', primitive: 'boolean'}, secure: {wire_key: 'secure', primitive: 'boolean'}, same_site: {wire_key: 'sameSite', enum: 'Network::SAME_SITE'}, expiry: {wire_key: 'expiry', required: false, primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, extensible: true )
- CookieHeader =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( name: {wire_key: 'name', primitive: 'string'}, value: {wire_key: 'value', ref: 'Network::BytesValue'} )
- FetchTimingInfo =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( time_origin: {wire_key: 'timeOrigin', primitive: 'number'}, request_time: {wire_key: 'requestTime', primitive: 'number'}, redirect_start: {wire_key: 'redirectStart', primitive: 'number'}, redirect_end: {wire_key: 'redirectEnd', primitive: 'number'}, fetch_start: {wire_key: 'fetchStart', primitive: 'number'}, dns_start: {wire_key: 'dnsStart', primitive: 'number'}, dns_end: {wire_key: 'dnsEnd', primitive: 'number'}, connect_start: {wire_key: 'connectStart', primitive: 'number'}, connect_end: {wire_key: 'connectEnd', primitive: 'number'}, tls_start: {wire_key: 'tlsStart', primitive: 'number'}, request_start: {wire_key: 'requestStart', primitive: 'number'}, response_start: {wire_key: 'responseStart', primitive: 'number'}, response_end: {wire_key: 'responseEnd', primitive: 'number'} )
- Header =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( name: {wire_key: 'name', primitive: 'string'}, value: {wire_key: 'value', ref: 'Network::BytesValue'} )
- Initiator =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( column_number: { wire_key: 'columnNumber', required: false, primitive: 'integer', min: 0, max: 9_007_199_254_740_991 }, line_number: { wire_key: 'lineNumber', required: false, primitive: 'integer', min: 0, max: 9_007_199_254_740_991 }, request: {wire_key: 'request', required: false, primitive: 'string'}, stack_trace: {wire_key: 'stackTrace', required: false, ref: 'Script::StackTrace'}, type: {wire_key: 'type', required: false, enum: 'Network::INITIATOR_TYPE'} )
- RequestData =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( request: {wire_key: 'request', primitive: 'string'}, url: {wire_key: 'url', primitive: 'string'}, method_: {wire_key: 'method', primitive: 'string'}, headers: {wire_key: 'headers', ref: 'Network::Header', list: true}, cookies: {wire_key: 'cookies', ref: 'Network::Cookie', list: true}, headers_size: {wire_key: 'headersSize', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, body_size: {wire_key: 'bodySize', nullable: true, primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, destination: {wire_key: 'destination', primitive: 'string'}, initiator_type: {wire_key: 'initiatorType', nullable: true, primitive: 'string'}, timings: {wire_key: 'timings', ref: 'Network::FetchTimingInfo'} )
- ResponseContent =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( size: {wire_key: 'size', primitive: 'integer', min: 0, max: 9_007_199_254_740_991} )
- ResponseData =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( url: {wire_key: 'url', primitive: 'string'}, protocol: {wire_key: 'protocol', primitive: 'string'}, status: {wire_key: 'status', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, status_text: {wire_key: 'statusText', primitive: 'string'}, from_cache: {wire_key: 'fromCache', primitive: 'boolean'}, headers: {wire_key: 'headers', ref: 'Network::Header', list: true}, mime_type: {wire_key: 'mimeType', primitive: 'string'}, bytes_received: {wire_key: 'bytesReceived', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, headers_size: { wire_key: 'headersSize', nullable: true, primitive: 'integer', min: 0, max: 9_007_199_254_740_991 }, body_size: {wire_key: 'bodySize', nullable: true, primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, content: {wire_key: 'content', ref: 'Network::ResponseContent'}, auth_challenges: {wire_key: 'authChallenges', required: false, ref: 'Network::AuthChallenge', list: true} )
- SetCookieHeader =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( name: {wire_key: 'name', primitive: 'string'}, value: {wire_key: 'value', ref: 'Network::BytesValue'}, domain: {wire_key: 'domain', required: false, primitive: 'string'}, http_only: {wire_key: 'httpOnly', required: false, primitive: 'boolean'}, expiry: {wire_key: 'expiry', required: false, primitive: 'string'}, max_age: { wire_key: 'maxAge', required: false, primitive: 'integer', min: -9_007_199_254_740_991, max: 9_007_199_254_740_991 }, path: {wire_key: 'path', required: false, primitive: 'string'}, same_site: {wire_key: 'sameSite', required: false, enum: 'Network::SAME_SITE'}, secure: {wire_key: 'secure', required: false, primitive: 'boolean'} )
- UrlPatternPattern =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( type: {fixed: 'pattern'}, protocol: {wire_key: 'protocol', required: false, primitive: 'string'}, hostname: {wire_key: 'hostname', required: false, primitive: 'string'}, port: {wire_key: 'port', required: false, primitive: 'string'}, pathname: {wire_key: 'pathname', required: false, primitive: 'string'}, search: {wire_key: 'search', required: false, primitive: 'string'} )
- UrlPatternString =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( type: {fixed: 'string'}, pattern: {wire_key: 'pattern', primitive: 'string'} )
- AddDataCollectorParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( data_types: {wire_key: 'dataTypes', list: true, enum: 'Network::DATA_TYPE'}, max_encoded_data_size: { wire_key: 'maxEncodedDataSize', primitive: 'integer', min: 0, max: 9_007_199_254_740_991 }, collector_type: {wire_key: 'collectorType', required: false, enum: 'Network::COLLECTOR_TYPE'}, contexts: {wire_key: 'contexts', required: false, list: true, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- AddDataCollectorResult =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define(collector: {wire_key: 'collector', primitive: 'string'})
- AddInterceptParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( phases: {wire_key: 'phases', list: true, enum: 'Network::INTERCEPT_PHASE'}, contexts: {wire_key: 'contexts', required: false, list: true, primitive: 'string'}, url_patterns: {wire_key: 'urlPatterns', required: false, ref: 'Network::UrlPattern', list: true} )
- AddInterceptResult =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define(intercept: {wire_key: 'intercept', primitive: 'string'})
- ContinueRequestParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( request: {wire_key: 'request', primitive: 'string'}, body: {wire_key: 'body', required: false, ref: 'Network::BytesValue'}, cookies: {wire_key: 'cookies', required: false, ref: 'Network::CookieHeader', list: true}, headers: {wire_key: 'headers', required: false, ref: 'Network::Header', list: true}, method_: {wire_key: 'method', required: false, primitive: 'string'}, url: {wire_key: 'url', required: false, primitive: 'string'} )
- ContinueResponseParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( request: {wire_key: 'request', primitive: 'string'}, cookies: {wire_key: 'cookies', required: false, ref: 'Network::SetCookieHeader', list: true}, credentials: {wire_key: 'credentials', required: false, ref: 'Network::AuthCredentials'}, headers: {wire_key: 'headers', required: false, ref: 'Network::Header', list: true}, reason_phrase: {wire_key: 'reasonPhrase', required: false, primitive: 'string'}, status_code: { wire_key: 'statusCode', required: false, primitive: 'integer', min: 0, max: 9_007_199_254_740_991 } )
- DisownDataParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( data_type: {wire_key: 'dataType', enum: 'Network::DATA_TYPE'}, collector: {wire_key: 'collector', primitive: 'string'}, request: {wire_key: 'request', primitive: 'string'} )
- FailRequestParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define(request: {wire_key: 'request', primitive: 'string'})
- GetDataParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( data_type: {wire_key: 'dataType', enum: 'Network::DATA_TYPE'}, collector: {wire_key: 'collector', required: false, primitive: 'string'}, disown: {wire_key: 'disown', required: false, primitive: 'boolean'}, request: {wire_key: 'request', primitive: 'string'} )
- GetDataResult =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define(bytes: {wire_key: 'bytes', ref: 'Network::BytesValue'})
- ProvideResponseParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( request: {wire_key: 'request', primitive: 'string'}, body: {wire_key: 'body', required: false, ref: 'Network::BytesValue'}, cookies: {wire_key: 'cookies', required: false, ref: 'Network::SetCookieHeader', list: true}, headers: {wire_key: 'headers', required: false, ref: 'Network::Header', list: true}, reason_phrase: {wire_key: 'reasonPhrase', required: false, primitive: 'string'}, status_code: { wire_key: 'statusCode', required: false, primitive: 'integer', min: 0, max: 9_007_199_254_740_991 } )
- RemoveDataCollectorParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( collector: {wire_key: 'collector', primitive: 'string'} )
- RemoveInterceptParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( intercept: {wire_key: 'intercept', primitive: 'string'} )
- SetCacheBehaviorParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( cache_behavior: {wire_key: 'cacheBehavior', enum: 'Network::SET_CACHE_BEHAVIOR_PARAMETERS_CACHE_BEHAVIOR'}, contexts: {wire_key: 'contexts', required: false, list: true, primitive: 'string'} )
- SetExtraHeadersParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( headers: {wire_key: 'headers', ref: 'Network::Header', list: true}, contexts: {wire_key: 'contexts', required: false, list: true, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- AuthRequiredParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( context: {wire_key: 'context', nullable: true, primitive: 'string'}, is_blocked: {wire_key: 'isBlocked', primitive: 'boolean'}, navigation: {wire_key: 'navigation', nullable: true, primitive: 'string'}, redirect_count: {wire_key: 'redirectCount', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, request: {wire_key: 'request', ref: 'Network::RequestData'}, timestamp: {wire_key: 'timestamp', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, user_context: {wire_key: 'userContext', required: false, nullable: true, primitive: 'string'}, intercepts: {wire_key: 'intercepts', required: false, list: true, primitive: 'string'}, response: {wire_key: 'response', ref: 'Network::ResponseData'} )
- BeforeRequestSentParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( context: {wire_key: 'context', nullable: true, primitive: 'string'}, is_blocked: {wire_key: 'isBlocked', primitive: 'boolean'}, navigation: {wire_key: 'navigation', nullable: true, primitive: 'string'}, redirect_count: {wire_key: 'redirectCount', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, request: {wire_key: 'request', ref: 'Network::RequestData'}, timestamp: {wire_key: 'timestamp', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, user_context: {wire_key: 'userContext', required: false, nullable: true, primitive: 'string'}, intercepts: {wire_key: 'intercepts', required: false, list: true, primitive: 'string'}, initiator: {wire_key: 'initiator', required: false, ref: 'Network::Initiator'} )
- FetchErrorParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( context: {wire_key: 'context', nullable: true, primitive: 'string'}, is_blocked: {wire_key: 'isBlocked', primitive: 'boolean'}, navigation: {wire_key: 'navigation', nullable: true, primitive: 'string'}, redirect_count: {wire_key: 'redirectCount', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, request: {wire_key: 'request', ref: 'Network::RequestData'}, timestamp: {wire_key: 'timestamp', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, user_context: {wire_key: 'userContext', required: false, nullable: true, primitive: 'string'}, intercepts: {wire_key: 'intercepts', required: false, list: true, primitive: 'string'}, error_text: {wire_key: 'errorText', primitive: 'string'} )
- ResponseCompletedParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( context: {wire_key: 'context', nullable: true, primitive: 'string'}, is_blocked: {wire_key: 'isBlocked', primitive: 'boolean'}, navigation: {wire_key: 'navigation', nullable: true, primitive: 'string'}, redirect_count: {wire_key: 'redirectCount', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, request: {wire_key: 'request', ref: 'Network::RequestData'}, timestamp: {wire_key: 'timestamp', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, user_context: {wire_key: 'userContext', required: false, nullable: true, primitive: 'string'}, intercepts: {wire_key: 'intercepts', required: false, list: true, primitive: 'string'}, response: {wire_key: 'response', ref: 'Network::ResponseData'} )
- ResponseStartedParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( context: {wire_key: 'context', nullable: true, primitive: 'string'}, is_blocked: {wire_key: 'isBlocked', primitive: 'boolean'}, navigation: {wire_key: 'navigation', nullable: true, primitive: 'string'}, redirect_count: {wire_key: 'redirectCount', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, request: {wire_key: 'request', ref: 'Network::RequestData'}, timestamp: {wire_key: 'timestamp', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, user_context: {wire_key: 'userContext', required: false, nullable: true, primitive: 'string'}, intercepts: {wire_key: 'intercepts', required: false, list: true, primitive: 'string'}, response: {wire_key: 'response', ref: 'Network::ResponseData'} )
- EVENT_TYPES =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ 'network.authRequired' => Network::AuthRequiredParameters, 'network.beforeRequestSent' => Network::BeforeRequestSentParameters, 'network.fetchError' => Network::FetchErrorParameters, 'network.responseCompleted' => Network::ResponseCompletedParameters, 'network.responseStarted' => Network::ResponseStartedParameters }.freeze
Instance Method Summary collapse
- #add_auth_required_listener(&block) ⇒ Object private
- #add_before_request_sent_listener(&block) ⇒ Object private
- #add_data_collector(data_types:, max_encoded_data_size:, collector_type: Serialization::UNSET, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
- #add_fetch_error_listener(&block) ⇒ Object private
- #add_intercept(phases:, contexts: Serialization::UNSET, url_patterns: Serialization::UNSET) ⇒ Object private
- #add_response_completed_listener(&block) ⇒ Object private
- #add_response_started_listener(&block) ⇒ Object private
- #auth_credentials ⇒ Object private
- #base64_value ⇒ Object private
- #bytes_value ⇒ Object private
- #continue_request(request:, body: Serialization::UNSET, cookies: Serialization::UNSET, headers: Serialization::UNSET, method_: Serialization::UNSET, url: Serialization::UNSET) ⇒ Object private
- #continue_response(request:, cookies: Serialization::UNSET, credentials: Serialization::UNSET, headers: Serialization::UNSET, reason_phrase: Serialization::UNSET, status_code: Serialization::UNSET) ⇒ Object private
- #continue_with_auth(request:, action:, credentials: Serialization::UNSET) ⇒ Object private
- #cookie_header ⇒ Object private
- #disown_data(data_type:, collector:, request:) ⇒ Object private
- #fail_request(request:) ⇒ Object private
- #get_data(data_type:, request:, collector: Serialization::UNSET, disown: Serialization::UNSET) ⇒ Object private
- #header ⇒ Object private
- #provide_response(request:, body: Serialization::UNSET, cookies: Serialization::UNSET, headers: Serialization::UNSET, reason_phrase: Serialization::UNSET, status_code: Serialization::UNSET) ⇒ Object private
- #remove_data_collector(collector:) ⇒ Object private
- #remove_intercept(intercept:) ⇒ Object private
- #set_cache_behavior(cache_behavior:, contexts: Serialization::UNSET) ⇒ Object private
- #set_cookie_header ⇒ Object private
- #set_extra_headers(headers:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
- #string_value ⇒ Object private
- #url_pattern ⇒ Object private
- #url_pattern_pattern ⇒ Object private
- #url_pattern_string ⇒ Object private
Methods inherited from Domain
Constructor Details
This class inherits a constructor from Selenium::WebDriver::BiDi::Protocol::Domain
Instance Method Details
#add_auth_required_listener(&block) ⇒ Object
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.
763 764 765 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 763 def add_auth_required_listener(&block) add_listener('network.authRequired', &block) end |
#add_before_request_sent_listener(&block) ⇒ Object
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.
769 770 771 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 769 def add_before_request_sent_listener(&block) add_listener('network.beforeRequestSent', &block) end |
#add_data_collector(data_types:, max_encoded_data_size:, collector_type: Serialization::UNSET, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object
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.
590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 590 def add_data_collector( data_types:, max_encoded_data_size:, collector_type: Serialization::UNSET, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET ) Serialization.validate!('dataTypes', data_types, Network::DATA_TYPE) Serialization.validate!('collectorType', collector_type, Network::COLLECTOR_TYPE) params = AddDataCollectorParameters.new( data_types: data_types, max_encoded_data_size: max_encoded_data_size, collector_type: collector_type, contexts: contexts, user_contexts: user_contexts ) execute(cmd: 'network.addDataCollector', params: params, result: Network::AddDataCollectorResult) end |
#add_fetch_error_listener(&block) ⇒ Object
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.
776 777 778 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 776 def add_fetch_error_listener(&block) add_listener('network.fetchError', &block) end |
#add_intercept(phases:, contexts: Serialization::UNSET, url_patterns: Serialization::UNSET) ⇒ Object
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.
612 613 614 615 616 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 612 def add_intercept(phases:, contexts: Serialization::UNSET, url_patterns: Serialization::UNSET) Serialization.validate!('phases', phases, Network::INTERCEPT_PHASE) params = AddInterceptParameters.new(phases: phases, contexts: contexts, url_patterns: url_patterns) execute(cmd: 'network.addIntercept', params: params, result: Network::AddInterceptResult) end |
#add_response_completed_listener(&block) ⇒ Object
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.
783 784 785 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 783 def add_response_completed_listener(&block) add_listener('network.responseCompleted', &block) end |
#add_response_started_listener(&block) ⇒ Object
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.
790 791 792 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 790 def add_response_started_listener(&block) add_listener('network.responseStarted', &block) end |
#auth_credentials ⇒ Object
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.
576 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 576 def auth_credentials(**) = AuthCredentials.new(**) |
#base64_value ⇒ Object
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.
579 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 579 def base64_value(**) = Base64Value.new(**) |
#bytes_value ⇒ Object
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.
577 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 577 def bytes_value = BytesValue |
#continue_request(request:, body: Serialization::UNSET, cookies: Serialization::UNSET, headers: Serialization::UNSET, method_: Serialization::UNSET, url: Serialization::UNSET) ⇒ Object
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.
621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 621 def continue_request( request:, body: Serialization::UNSET, cookies: Serialization::UNSET, headers: Serialization::UNSET, method_: Serialization::UNSET, url: Serialization::UNSET ) params = ContinueRequestParameters.new( request: request, body: body, cookies: , headers: headers, method_: method_, url: url ) execute(cmd: 'network.continueRequest', params: params) end |
#continue_response(request:, cookies: Serialization::UNSET, credentials: Serialization::UNSET, headers: Serialization::UNSET, reason_phrase: Serialization::UNSET, status_code: Serialization::UNSET) ⇒ Object
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.
643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 643 def continue_response( request:, cookies: Serialization::UNSET, credentials: Serialization::UNSET, headers: Serialization::UNSET, reason_phrase: Serialization::UNSET, status_code: Serialization::UNSET ) params = ContinueResponseParameters.new( request: request, cookies: , credentials: credentials, headers: headers, reason_phrase: reason_phrase, status_code: status_code ) execute(cmd: 'network.continueResponse', params: params) end |
#continue_with_auth(request:, action:, credentials: Serialization::UNSET) ⇒ Object
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.
665 666 667 668 669 670 671 672 673 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 665 def continue_with_auth(request:, action:, credentials: Serialization::UNSET) Serialization.validate!( 'action', action, {provide_credentials: 'provideCredentials', default: 'default', cancel: 'cancel'} ) params = ContinueWithAuthParameters.build(request: request, action: action, credentials: credentials) execute(cmd: 'network.continueWithAuth', params: params) end |
#cookie_header ⇒ Object
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.
580 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 580 def (**) = CookieHeader.new(**) |
#disown_data(data_type:, collector:, request:) ⇒ Object
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.
678 679 680 681 682 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 678 def disown_data(data_type:, collector:, request:) Serialization.validate!('dataType', data_type, Network::DATA_TYPE) params = DisownDataParameters.new(data_type: data_type, collector: collector, request: request) execute(cmd: 'network.disownData', params: params) end |
#fail_request(request:) ⇒ Object
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.
687 688 689 690 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 687 def fail_request(request:) params = FailRequestParameters.new(request: request) execute(cmd: 'network.failRequest', params: params) end |
#get_data(data_type:, request:, collector: Serialization::UNSET, disown: Serialization::UNSET) ⇒ Object
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.
695 696 697 698 699 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 695 def get_data(data_type:, request:, collector: Serialization::UNSET, disown: Serialization::UNSET) Serialization.validate!('dataType', data_type, Network::DATA_TYPE) params = GetDataParameters.new(data_type: data_type, collector: collector, disown: disown, request: request) execute(cmd: 'network.getData', params: params, result: Network::GetDataResult) end |
#header ⇒ Object
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.
581 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 581 def header(**) = Header.new(**) |
#provide_response(request:, body: Serialization::UNSET, cookies: Serialization::UNSET, headers: Serialization::UNSET, reason_phrase: Serialization::UNSET, status_code: Serialization::UNSET) ⇒ Object
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.
704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 704 def provide_response( request:, body: Serialization::UNSET, cookies: Serialization::UNSET, headers: Serialization::UNSET, reason_phrase: Serialization::UNSET, status_code: Serialization::UNSET ) params = ProvideResponseParameters.new( request: request, body: body, cookies: , headers: headers, reason_phrase: reason_phrase, status_code: status_code ) execute(cmd: 'network.provideResponse', params: params) end |
#remove_data_collector(collector:) ⇒ Object
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.
726 727 728 729 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 726 def remove_data_collector(collector:) params = RemoveDataCollectorParameters.new(collector: collector) execute(cmd: 'network.removeDataCollector', params: params) end |
#remove_intercept(intercept:) ⇒ Object
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.
734 735 736 737 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 734 def remove_intercept(intercept:) params = RemoveInterceptParameters.new(intercept: intercept) execute(cmd: 'network.removeIntercept', params: params) end |
#set_cache_behavior(cache_behavior:, contexts: Serialization::UNSET) ⇒ Object
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.
742 743 744 745 746 747 748 749 750 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 742 def set_cache_behavior(cache_behavior:, contexts: Serialization::UNSET) Serialization.validate!( 'cacheBehavior', cache_behavior, Network::SET_CACHE_BEHAVIOR_PARAMETERS_CACHE_BEHAVIOR ) params = SetCacheBehaviorParameters.new(cache_behavior: cache_behavior, contexts: contexts) execute(cmd: 'network.setCacheBehavior', params: params) end |
#set_cookie_header ⇒ Object
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.
582 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 582 def (**) = SetCookieHeader.new(**) |
#set_extra_headers(headers:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object
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.
755 756 757 758 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 755 def set_extra_headers(headers:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) params = SetExtraHeadersParameters.new(headers: headers, contexts: contexts, user_contexts: user_contexts) execute(cmd: 'network.setExtraHeaders', params: params) end |
#string_value ⇒ Object
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.
578 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 578 def string_value(**) = StringValue.new(**) |
#url_pattern ⇒ Object
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.
583 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 583 def url_pattern = UrlPattern |
#url_pattern_pattern ⇒ Object
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.
584 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 584 def url_pattern_pattern(**) = UrlPatternPattern.new(**) |
#url_pattern_string ⇒ Object
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.
585 |
# File 'lib/selenium/webdriver/bidi/protocol/network.rb', line 585 def url_pattern_string(**) = UrlPatternString.new(**) |