Class: Selenium::WebDriver::BiDi::Protocol::BrowsingContext 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/browsing_context.rb |
Overview
Constant Summary
-
AccessibilityLocator =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 121
Serialization::Record.define( type: {fixed: 'accessibility'}, value: {wire_key: 'value', ref: 'BrowsingContext::AccessibilityLocator::Value'} )
-
ActivateParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 197
Serialization::Record.define(context: {wire_key: 'context', primitive: 'string'})
-
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 175
Serialization::Record.define( 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'} )
-
BoxClipRectangle =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 240
Serialization::Record.define( type: {fixed: 'box'}, x: {wire_key: 'x', primitive: 'number'}, y: {wire_key: 'y', primitive: 'number'}, width: {wire_key: 'width', primitive: 'number'}, height: {wire_key: 'height', primitive: 'number'} )
-
CAPTURE_SCREENSHOT_PARAMETERS_ORIGIN =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 74{ viewport: 'viewport', document: 'document' }.freeze -
CREATE_TYPE =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 64
{ tab: 'tab', window: 'window' }.freeze -
CaptureScreenshotParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 202
Serialization::Record.define( context: {wire_key: 'context', primitive: 'string'}, origin: {wire_key: 'origin', required: false, enum: 'BrowsingContext::CAPTURE_SCREENSHOT_PARAMETERS_ORIGIN'}, format: {wire_key: 'format', required: false, ref: 'BrowsingContext::ImageFormat'}, clip: {wire_key: 'clip', required: false, ref: 'BrowsingContext::ClipRectangle'} )
-
CaptureScreenshotResult =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 251
Serialization::Record.define(data: {wire_key: 'data', primitive: 'string'})
-
CloseParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 256
Serialization::Record.define( context: {wire_key: 'context', primitive: 'string'}, prompt_unload: {wire_key: 'promptUnload', required: false, primitive: 'boolean'} )
-
ContextLocator =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 144
Serialization::Record.define( type: {fixed: 'context'}, value: {wire_key: 'value', ref: 'BrowsingContext::ContextLocator::Value'} )
-
CreateParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 264
Serialization::Record.define( type: {wire_key: 'type', enum: 'BrowsingContext::CREATE_TYPE'}, reference_context: {wire_key: 'referenceContext', required: false, primitive: 'string'}, background: {wire_key: 'background', required: false, primitive: 'boolean'}, user_context: {wire_key: 'userContext', required: false, primitive: 'string'} )
-
CreateResult =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 274
Serialization::Record.define( context: {wire_key: 'context', primitive: 'string'}, user_context: {wire_key: 'userContext', required: false, primitive: 'string'} )
-
CssLocator =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 136
Serialization::Record.define( type: {fixed: 'css'}, value: {wire_key: 'value', primitive: 'string'} )
-
DownloadWillBeginParams =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 482
Serialization::Record.define( download: {wire_key: 'download', primitive: 'string'}, suggested_filename: {wire_key: 'suggestedFilename', 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'} )
-
EVENTS =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 31{ context_created: 'browsingContext.contextCreated', context_destroyed: 'browsingContext.contextDestroyed', dom_content_loaded: 'browsingContext.domContentLoaded', download_end: 'browsingContext.downloadEnd', download_will_begin: 'browsingContext.downloadWillBegin', fragment_navigated: 'browsingContext.fragmentNavigated', history_updated: 'browsingContext.historyUpdated', load: 'browsingContext.load', navigation_aborted: 'browsingContext.navigationAborted', navigation_committed: 'browsingContext.navigationCommitted', navigation_failed: 'browsingContext.navigationFailed', navigation_started: 'browsingContext.navigationStarted', user_prompt_closed: 'browsingContext.userPromptClosed', user_prompt_opened: 'browsingContext.userPromptOpened' }.freeze -
EVENT_TYPES =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 552{ 'browsingContext.contextCreated' => BrowsingContext::Info, 'browsingContext.contextDestroyed' => BrowsingContext::Info, 'browsingContext.domContentLoaded' => BrowsingContext::NavigationInfo, 'browsingContext.downloadEnd' => BrowsingContext::DownloadEndParams, 'browsingContext.downloadWillBegin' => BrowsingContext::DownloadWillBeginParams, 'browsingContext.fragmentNavigated' => BrowsingContext::NavigationInfo, 'browsingContext.historyUpdated' => BrowsingContext::HistoryUpdatedParameters, 'browsingContext.load' => BrowsingContext::NavigationInfo, 'browsingContext.navigationAborted' => BrowsingContext::NavigationInfo, 'browsingContext.navigationCommitted' => BrowsingContext::NavigationInfo, 'browsingContext.navigationFailed' => BrowsingContext::NavigationInfo, 'browsingContext.navigationStarted' => BrowsingContext::NavigationInfo, 'browsingContext.userPromptClosed' => BrowsingContext::UserPromptClosedParameters, 'browsingContext.userPromptOpened' => BrowsingContext::UserPromptOpenedParameters }.freeze -
ElementClipRectangle =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 232
Serialization::Record.define( type: {fixed: 'element'}, element: {wire_key: 'element', ref: 'Script::SharedReference'} )
-
GetTreeParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 282
Serialization::Record.define( max_depth: {wire_key: 'maxDepth', required: false, primitive: 'integer'}, root: {wire_key: 'root', required: false, primitive: 'string'} )
-
GetTreeResult =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 290
Serialization::Record.define( contexts: {wire_key: 'contexts', ref: 'BrowsingContext::Info', list: true} )
-
HandleUserPromptParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 297
Serialization::Record.define( context: {wire_key: 'context', primitive: 'string'}, accept: {wire_key: 'accept', required: false, primitive: 'boolean'}, user_text: {wire_key: 'userText', required: false, primitive: 'string'} )
-
HistoryUpdatedParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 472
Serialization::Record.define( context: {wire_key: 'context', primitive: 'string'}, timestamp: {wire_key: 'timestamp', primitive: 'integer'}, url: {wire_key: 'url', primitive: 'string'}, user_context: {wire_key: 'userContext', required: false, primitive: 'string'} )
-
INNER_TEXT_LOCATOR_MATCH_TYPE =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 69{ full: 'full', partial: 'partial' }.freeze -
ImageFormat =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 212
Serialization::Record.define( type: {wire_key: 'type', primitive: 'string'}, quality: {wire_key: 'quality', required: false, primitive: 'integer'} )
-
Info =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 87
Serialization::Record.define( children: {wire_key: 'children', nullable: true, ref: 'BrowsingContext::Info', list: true}, client_window: {wire_key: 'clientWindow', primitive: 'string'}, context: {wire_key: 'context', primitive: 'string'}, original_opener: {wire_key: 'originalOpener', nullable: true, primitive: 'string'}, url: {wire_key: 'url', primitive: 'string'}, user_context: {wire_key: 'userContext', primitive: 'string'}, parent: {wire_key: 'parent', required: false, nullable: true, primitive: 'string'} )
-
InnerTextLocator =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 156
Serialization::Record.define( type: {fixed: 'innerText'}, value: {wire_key: 'value', primitive: 'string'}, ignore_case: {wire_key: 'ignoreCase', required: false, primitive: 'boolean'}, match_type: {wire_key: 'matchType', required: false, enum: 'BrowsingContext::INNER_TEXT_LOCATOR_MATCH_TYPE'}, max_depth: {wire_key: 'maxDepth', required: false, primitive: 'integer'} )
-
LocateNodesParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 306
Serialization::Record.define( context: {wire_key: 'context', primitive: 'string'}, locator: {wire_key: 'locator', ref: 'BrowsingContext::Locator'}, max_node_count: {wire_key: 'maxNodeCount', required: false, primitive: 'integer'}, serialization_options: { wire_key: 'serializationOptions', required: false, ref: 'Script::SerializationOptions' }, start_nodes: {wire_key: 'startNodes', required: false, ref: 'Script::SharedReference', list: true} )
-
LocateNodesResult =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 321
Serialization::Record.define( nodes: {wire_key: 'nodes', ref: 'Script::NodeRemoteValue', list: true} )
-
MediaTrackConstraints =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 432
Serialization::Record.define( width: {wire_key: 'width', required: false, primitive: 'integer'}, height: {wire_key: 'height', required: false, primitive: 'integer'}, frame_rate: {wire_key: 'frameRate', required: false, primitive: 'integer'} )
-
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 328
Serialization::Record.define( context: {wire_key: 'context', primitive: 'string'}, url: {wire_key: 'url', primitive: 'string'}, wait: {wire_key: 'wait', required: false, enum: 'BrowsingContext::READINESS_STATE'} )
-
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 337
Serialization::Record.define( navigation: {wire_key: 'navigation', nullable: true, primitive: 'string'}, url: {wire_key: 'url', primitive: 'string'} )
-
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 186
Serialization::Record.define( 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'} )
-
PRINT_PARAMETERS_ORIENTATION =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 79{ portrait: 'portrait', landscape: 'landscape' }.freeze -
PrintMarginParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 363
Serialization::Record.define( bottom: {wire_key: 'bottom', required: false, primitive: 'number'}, left: {wire_key: 'left', required: false, primitive: 'number'}, right: {wire_key: 'right', required: false, primitive: 'number'}, top: {wire_key: 'top', required: false, primitive: 'number'} )
-
PrintPageParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 373
Serialization::Record.define( height: {wire_key: 'height', required: false, primitive: 'number'}, width: {wire_key: 'width', required: false, primitive: 'number'} )
-
PrintParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 345
Serialization::Record.define( context: {wire_key: 'context', primitive: 'string'}, background: {wire_key: 'background', required: false, primitive: 'boolean'}, margin: {wire_key: 'margin', required: false, ref: 'BrowsingContext::PrintMarginParameters'}, orientation: { wire_key: 'orientation', required: false, enum: 'BrowsingContext::PRINT_PARAMETERS_ORIENTATION' }, page: {wire_key: 'page', required: false, ref: 'BrowsingContext::PrintPageParameters'}, page_ranges: {wire_key: 'pageRanges', required: false, list: true}, scale: {wire_key: 'scale', required: false, primitive: 'number'}, shrink_to_fit: {wire_key: 'shrinkToFit', required: false, primitive: 'boolean'} )
-
PrintResult =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 381
Serialization::Record.define(data: {wire_key: 'data', primitive: 'string'})
-
READINESS_STATE =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 49
{ none: 'none', interactive: 'interactive', complete: 'complete' }.freeze -
ReloadParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 386
Serialization::Record.define( context: {wire_key: 'context', primitive: 'string'}, ignore_cache: {wire_key: 'ignoreCache', required: false, primitive: 'boolean'}, wait: {wire_key: 'wait', required: false, enum: 'BrowsingContext::READINESS_STATE'} )
-
SetBypassCSPParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 395
Serialization::Record.define( bypass: {wire_key: 'bypass', nullable: true}, contexts: {wire_key: 'contexts', required: false, list: true}, user_contexts: {wire_key: 'userContexts', required: false, list: true} )
-
SetViewportParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 404
Serialization::Record.define( context: {wire_key: 'context', required: false, primitive: 'string'}, viewport: {wire_key: 'viewport', required: false, nullable: true, ref: 'BrowsingContext::Viewport'}, device_pixel_ratio: {wire_key: 'devicePixelRatio', required: false, nullable: true, primitive: 'number'}, user_contexts: {wire_key: 'userContexts', required: false, list: true} )
-
StartScreencastParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 422
Serialization::Record.define( context: {wire_key: 'context', primitive: 'string'}, mime_type: {wire_key: 'mimeType', required: false, primitive: 'string'}, video: {wire_key: 'video', required: false, ref: 'BrowsingContext::MediaTrackConstraints'}, audio: {wire_key: 'audio', required: false, primitive: 'boolean'} )
-
StartScreencastResult =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 441
Serialization::Record.define( screencast: {wire_key: 'screencast', primitive: 'string'}, path: {wire_key: 'path', primitive: 'string'} )
-
StopScreencastParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 449
Serialization::Record.define( screencast: {wire_key: 'screencast', primitive: 'string'} )
-
StopScreencastResult =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 456
Serialization::Record.define( path: {wire_key: 'path', primitive: 'string'}, error: {wire_key: 'error', required: false, primitive: 'string'} )
-
TraverseHistoryParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 464
Serialization::Record.define( context: {wire_key: 'context', primitive: 'string'}, delta: {wire_key: 'delta', primitive: 'integer'} )
-
USER_PROMPT_TYPE =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 56
{ alert: 'alert', beforeunload: 'beforeunload', confirm: 'confirm', prompt: 'prompt' }.freeze -
UserPromptClosedParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 532
Serialization::Record.define( context: {wire_key: 'context', primitive: 'string'}, accepted: {wire_key: 'accepted', primitive: 'boolean'}, type: {wire_key: 'type', enum: 'BrowsingContext::USER_PROMPT_TYPE'}, user_context: {wire_key: 'userContext', required: false, primitive: 'string'}, user_text: {wire_key: 'userText', required: false, primitive: 'string'} )
-
UserPromptOpenedParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 543
Serialization::Record.define( context: {wire_key: 'context', primitive: 'string'}, handler: {wire_key: 'handler', enum: 'Session::USER_PROMPT_HANDLER_TYPE'}, message: {wire_key: 'message', primitive: 'string'}, type: {wire_key: 'type', enum: 'BrowsingContext::USER_PROMPT_TYPE'}, user_context: {wire_key: 'userContext', required: false, primitive: 'string'}, default_value: {wire_key: 'defaultValue', required: false, primitive: 'string'} )
-
Viewport =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 414
Serialization::Record.define( width: {wire_key: 'width', primitive: 'integer'}, height: {wire_key: 'height', primitive: 'integer'} )
-
XPathLocator =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 167
Serialization::Record.define( type: {fixed: 'xpath'}, value: {wire_key: 'value', primitive: 'string'} )
Class Method Summary
Instance Method Summary
- #activate(context:) Internal use only
- #capture_screenshot(context:, origin: Serialization::UNSET, format: Serialization::UNSET, clip: Serialization::UNSET) Internal use only
- #close(context:, prompt_unload: Serialization::UNSET) Internal use only
- #create(type:, reference_context: Serialization::UNSET, background: Serialization::UNSET, user_context: Serialization::UNSET) Internal use only
- #get_tree(max_depth: Serialization::UNSET, root: Serialization::UNSET) Internal use only
- #handle_user_prompt(context:, accept: Serialization::UNSET, user_text: Serialization::UNSET) Internal use only
- #locate_nodes(context:, locator:, max_node_count: Serialization::UNSET, serialization_options: Serialization::UNSET, start_nodes: Serialization::UNSET) Internal use only
- #navigate(context:, url:, wait: Serialization::UNSET) Internal use only
- #print(context:, background: Serialization::UNSET, margin: Serialization::UNSET, orientation: Serialization::UNSET, page: Serialization::UNSET, page_ranges: Serialization::UNSET, scale: Serialization::UNSET, shrink_to_fit: Serialization::UNSET) Internal use only
- #reload(context:, ignore_cache: Serialization::UNSET, wait: Serialization::UNSET) Internal use only
- #set_bypass_csp(bypass:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) Internal use only
- #set_viewport(context: Serialization::UNSET, viewport: Serialization::UNSET, device_pixel_ratio: Serialization::UNSET, user_contexts: Serialization::UNSET) Internal use only
- #start_screencast(context:, mime_type: Serialization::UNSET, video: Serialization::UNSET, audio: Serialization::UNSET) Internal use only
- #stop_screencast(screencast:) Internal use only
- #traverse_history(context:, delta:) Internal use only
Domain - Inherited
Constructor Details
This class inherits a constructor from Selenium::WebDriver::BiDi::Protocol::Domain
Instance Method Details
#activate(context:)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 572
def activate(context:) params = ActivateParameters.new(context: context) execute(cmd: 'browsingContext.activate', params: params) end
#capture_screenshot(context:, origin: Serialization::UNSET, format: Serialization::UNSET, clip: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 580
def capture_screenshot( context:, origin: Serialization::UNSET, format: Serialization::UNSET, clip: Serialization::UNSET ) Serialization.validate!('origin', origin, BrowsingContext::CAPTURE_SCREENSHOT_PARAMETERS_ORIGIN) params = CaptureScreenshotParameters.new(context: context, origin: origin, format: format, clip: clip) execute( cmd: 'browsingContext.captureScreenshot', params: params, result: BrowsingContext::CaptureScreenshotResult ) end
#close(context:, prompt_unload: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 598
def close(context:, prompt_unload: Serialization::UNSET) params = CloseParameters.new(context: context, prompt_unload: prompt_unload) execute(cmd: 'browsingContext.close', params: params) end
#create(type:, reference_context: Serialization::UNSET, background: Serialization::UNSET, user_context: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 606
def create( type:, reference_context: Serialization::UNSET, background: Serialization::UNSET, user_context: Serialization::UNSET ) Serialization.validate!('type', type, BrowsingContext::CREATE_TYPE) params = CreateParameters.new( type: type, reference_context: reference_context, background: background, user_context: user_context ) execute(cmd: 'browsingContext.create', params: params, result: BrowsingContext::CreateResult) end
#get_tree(max_depth: Serialization::UNSET, root: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 625
def get_tree(max_depth: Serialization::UNSET, root: Serialization::UNSET) params = GetTreeParameters.new(max_depth: max_depth, root: root) execute(cmd: 'browsingContext.getTree', params: params, result: BrowsingContext::GetTreeResult) end
#handle_user_prompt(context:, accept: Serialization::UNSET, user_text: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 633
def handle_user_prompt(context:, accept: Serialization::UNSET, user_text: Serialization::UNSET) params = HandleUserPromptParameters.new(context: context, accept: accept, user_text: user_text) execute(cmd: 'browsingContext.handleUserPrompt', params: params) end
#locate_nodes(context:, locator:, max_node_count: Serialization::UNSET, serialization_options: Serialization::UNSET, start_nodes: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 641
def locate_nodes( context:, locator:, max_node_count: Serialization::UNSET, serialization_options: Serialization::UNSET, start_nodes: Serialization::UNSET ) params = LocateNodesParameters.new( context: context, locator: locator, max_node_count: max_node_count, serialization_options: , start_nodes: start_nodes ) execute(cmd: 'browsingContext.locateNodes', params: params, result: BrowsingContext::LocateNodesResult) end
#print(context:, background: Serialization::UNSET, margin: Serialization::UNSET, orientation: Serialization::UNSET, page: Serialization::UNSET, page_ranges: Serialization::UNSET, scale: Serialization::UNSET, shrink_to_fit: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 670
def print( context:, background: Serialization::UNSET, margin: Serialization::UNSET, orientation: Serialization::UNSET, page: Serialization::UNSET, page_ranges: Serialization::UNSET, scale: Serialization::UNSET, shrink_to_fit: Serialization::UNSET ) Serialization.validate!('orientation', orientation, BrowsingContext::PRINT_PARAMETERS_ORIENTATION) params = PrintParameters.new( context: context, background: background, margin: margin, orientation: orientation, page: page, page_ranges: page_ranges, scale: scale, shrink_to_fit: shrink_to_fit ) execute(cmd: 'browsingContext.print', params: params, result: BrowsingContext::PrintResult) end
#reload(context:, ignore_cache: Serialization::UNSET, wait: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 697
def reload(context:, ignore_cache: Serialization::UNSET, wait: Serialization::UNSET) Serialization.validate!('wait', wait, BrowsingContext::READINESS_STATE) params = ReloadParameters.new(context: context, ignore_cache: ignore_cache, wait: wait) execute(cmd: 'browsingContext.reload', params: params, result: BrowsingContext::NavigateResult) end
#set_bypass_csp(bypass:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 706
def set_bypass_csp(bypass:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) params = SetBypassCSPParameters.new(bypass: bypass, contexts: contexts, user_contexts: user_contexts) execute(cmd: 'browsingContext.setBypassCSP', params: params) end
#set_viewport(context: Serialization::UNSET, viewport: Serialization::UNSET, device_pixel_ratio: Serialization::UNSET, user_contexts: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 714
def ( context: Serialization::UNSET, viewport: Serialization::UNSET, device_pixel_ratio: Serialization::UNSET, user_contexts: Serialization::UNSET ) params = SetViewportParameters.new( context: context, viewport: , device_pixel_ratio: device_pixel_ratio, user_contexts: user_contexts ) execute(cmd: 'browsingContext.setViewport', params: params) end
#start_screencast(context:, mime_type: Serialization::UNSET, video: Serialization::UNSET, audio: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 732
def start_screencast( context:, mime_type: Serialization::UNSET, video: Serialization::UNSET, audio: Serialization::UNSET ) params = StartScreencastParameters.new(context: context, mime_type: mime_type, video: video, audio: audio) execute( cmd: 'browsingContext.startScreencast', params: params, result: BrowsingContext::StartScreencastResult ) end
#stop_screencast(screencast:)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 749
def stop_screencast(screencast:) params = StopScreencastParameters.new(screencast: screencast) execute( cmd: 'browsingContext.stopScreencast', params: params, result: BrowsingContext::StopScreencastResult ) end
#traverse_history(context:, delta:)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 761
def traverse_history(context:, delta:) params = TraverseHistoryParameters.new(context: context, delta: delta) execute(cmd: 'browsingContext.traverseHistory', params: params) end