BrowserController
Hierarchy
- BrowserController
Index
Methods
close
Close the browser.
Parameters
optionalkeyword-onlyforce: bool = False
Whether to force close all open pages before closing the browser.
Returns None
new_page
Create a new page with the given context options.
Parameters
optionalbrowser_new_context_options: Mapping[str, Any] | None = None
Keyword arguments to pass to the browser new context method. These options are provided directly to Playwright's
browser.new_contextmethod. For more details, refer to the Playwright documentation: https://playwright.dev/python/docs/api/class-browser#browser-new-context.optionalproxy_info: ProxyInfo | None = None
The proxy configuration to use for the new page.
Returns Page
Page: The newly created page.
An abstract base class for managing browser instance and their pages.