PlaywrightBrowserPlugin
Hierarchy
- BaseBrowserPlugin
- PlaywrightBrowserPlugin
Index
Constructors
__init__
Create a new instance.
Parameters
keyword-onlybrowser_type: BrowserType = 'chromium'
The type of the browser to launch.
keyword-onlybrowser_options: Mapping[str, Any] | None = None
Options to configure the browser instance.
keyword-onlypage_options: Mapping[str, Any] | None = None
Options to configure a new page instance.
keyword-onlymax_open_pages_per_browser: int = 20
The maximum number of pages that can be opened in a single browser instance. Once reached, a new browser instance will be launched to handle the excess.
Returns None
Methods
__aenter__
Returns PlaywrightBrowserPlugin
__aexit__
Parameters
exc_type: type[BaseException] | None
exc_value: BaseException | None
exc_traceback: TracebackType | None
Returns None
new_browser
Returns PlaywrightBrowserController
A plugin for managing Playwright automation library.
It should work as a factory for creating new browser instances.