123456789_123456789_123456789_123456789_123456789_

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

::Selenium::WebDriver::BiDi::BrowsingContext - Inherited

READINESS_STATE

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

::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)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 857

def get_tree(max_depth: Serialization::UNSET, root: Serialization::UNSET, scope: Serialization::UNSET)
  extensions = {
    'moz:scope' => scope
  }.reject { |_, value| Serialization::UNSET.equal?(value) }
  params = GetTreeParameters.new(max_depth: max_depth, root: root, extensions: extensions)
  execute(cmd: 'browsingContext.getTree', params: params, result: BrowsingContext::GetTreeResult)
end