class Selenium::WebDriver::BiDi::BrowsingContext

def close(context_id: nil)

Parameters:
  • context_id (String) -- The ID of the context to close.
def close(context_id: nil)
  context_id ||= @bridge.window_handle
  @bidi.send_cmd('browsingContext.close', context: context_id)
end