class Selenium::WebDriver::BiDi::Protocol::BrowsingContext

def activate(context:)

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
def activate(context:)
  params = ActivateParameters.new(context: context)
  execute(cmd: 'browsingContext.activate', params: params)
end

def capture_screenshot(

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
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

def close(context:, prompt_unload: Serialization::UNSET)

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
def close(context:, prompt_unload: Serialization::UNSET)
  params = CloseParameters.new(context: context, prompt_unload: prompt_unload)
  execute(cmd: 'browsingContext.close', params: params)
end

def create(

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
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

def get_tree(max_depth: Serialization::UNSET, root: Serialization::UNSET)

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
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

def handle_user_prompt(context:, accept: Serialization::UNSET, user_text: Serialization::UNSET)

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
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

def locate_nodes(

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
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: serialization_options,
    start_nodes: start_nodes
  )
  execute(cmd: 'browsingContext.locateNodes', params: params, result: BrowsingContext::LocateNodesResult)
end

def navigate(context:, url:, wait: Serialization::UNSET)

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
def navigate(context:, url:, wait: Serialization::UNSET)
  Serialization.validate!('wait', wait, BrowsingContext::READINESS_STATE)
  params = NavigateParameters.new(context: context, url: url, wait: wait)
  execute(cmd: 'browsingContext.navigate', params: params, result: BrowsingContext::NavigateResult)
end

def print(

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
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

def reload(context:, ignore_cache: Serialization::UNSET, wait: Serialization::UNSET)

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
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

def set_bypass_csp(bypass:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET)

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
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

def set_viewport(

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
def set_viewport(
  context: Serialization::UNSET,
  viewport: Serialization::UNSET,
  device_pixel_ratio: Serialization::UNSET,
  user_contexts: Serialization::UNSET
)
  params = SetViewportParameters.new(
    context: context,
    viewport: viewport,
    device_pixel_ratio: device_pixel_ratio,
    user_contexts: user_contexts
  )
  execute(cmd: 'browsingContext.setViewport', params: params)
end

def start_screencast(

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
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

def stop_screencast(screencast:)

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
def stop_screencast(screencast:)
  params = StopScreencastParameters.new(screencast: screencast)
  execute(
    cmd: 'browsingContext.stopScreencast',
    params: params,
    result: BrowsingContext::StopScreencastResult
  )
end

def traverse_history(context:, delta:)

Other tags:
    See: https://www.selenium.dev/documentation/warnings/bidi-implementation/ -

Other tags:
    Api: - private
def traverse_history(context:, delta:)
  params = TraverseHistoryParameters.new(context: context, delta: delta)
  execute(cmd: 'browsingContext.traverseHistory', params: params)
end