Class: Selenium::WebDriver::BiDi::Protocol::BrowsingContext::Moz Private
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
|
Instance Chain:
|
|
| Inherits: |
Selenium::WebDriver::BiDi::BrowsingContext
|
| Defined in: | rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb |
Overview
moz: vendor variant of ::Selenium::WebDriver::BiDi::Protocol::BrowsingContext, with browser-specific commands and params.
Construct Moz.new(source) for a matching session; other sessions use ::Selenium::WebDriver::BiDi::Protocol::BrowsingContext.
Constant Summary
-
GetTreeParameters =
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 914
Serialization::Record.define( max_depth: { wire_key: 'maxDepth', required: false, primitive: 'integer', min: 0, max: 9_007_199_254_740_991 }, root: {wire_key: 'root', required: false, primitive: 'string'}, scope: {wire_key: 'moz:scope', required: false, enum: 'BrowsingContext::MOZ_SCOPE'} )
::Selenium::WebDriver::BiDi::BrowsingContext - Inherited
Class Method Summary
::Selenium::WebDriver::BiDi::BrowsingContext - Inherited
| .new | TODO: store current window handle in bridge object instead of always calling it. |
Instance Method Summary
- #get_tree(max_depth: Serialization::UNSET, root: Serialization::UNSET, scope: Serialization::UNSET) Internal use only
::Selenium::WebDriver::BiDi::BrowsingContext - Inherited
| #activate, | |
| #close | Closes the browsing context. |
| #create | Create a new browsing context. |
| #handle_user_prompt, | |
| #navigate | Navigates to the specified URL in the given browsing context. |
| #reload | Reloads the browsing context. |
| #set_viewport, | |
| #traverse_history | Traverses the browsing context history by a given delta. |
Constructor Details
This class inherits a constructor from Selenium::WebDriver::BiDi::BrowsingContext
Instance Method Details
#get_tree(max_depth: Serialization::UNSET, root: Serialization::UNSET, scope: Serialization::UNSET)
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 929
def get_tree(max_depth: Serialization::UNSET, root: Serialization::UNSET, scope: Serialization::UNSET) Serialization.validate!('moz:scope', scope, BrowsingContext::MOZ_SCOPE) params = GetTreeParameters.new(max_depth: max_depth, root: root, scope: scope) execute(cmd: 'browsingContext.getTree', params: params, result: BrowsingContext::GetTreeResult) end