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

Inherits:
BrowsingContext
  • Object
show all
Defined in:
rb/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 collapse

GetTreeParameters =

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(
  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'}
)

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.



1027
1028
1029
1030
1031
# File 'rb/lib/selenium/webdriver/bidi/protocol/browsing_context.rb', line 1027

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