Class: Selenium::WebDriver::BiDi::Protocol::BrowsingContext::Moz Private

Inherits:
BrowsingContext
  • Object
show all
Defined in:
lib/selenium/webdriver/bidi/protocol/browsing_context.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.

moz: vendor variant of BrowsingContext, with browser-specific commands and params. Construct Moz.new(source) for a matching session; other sessions use BrowsingContext.

Constant Summary

Constants inherited from BrowsingContext

BrowsingContext::READINESS_STATE

Instance Method Summary collapse

Methods inherited from BrowsingContext

#activate, #close, #create, #handle_user_prompt, #initialize, #navigate, #reload, #set_viewport, #traverse_history

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) ⇒ 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.



857
858
859
860
861
862
863
# File '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