class Selenium::WebDriver::BiDi::BrowsingContext
def create(type: nil, context_id: nil)
-
(String)- The context ID of the created browsing context.
Parameters:
-
context_id(String) -- The reference context for the new browsing context. -
type(Symbol) -- The type of browsing context to create.
def create(type: nil, context_id: nil) type ||= :window context_id ||= @bridge.window_handle result = @bidi.send_cmd('browsingContext.create', type: type.to_s, referenceContext: context_id) result['context'] end