PlaywrightBrowserController
crawlee.browsers._playwright_browser_controller.PlaywrightBrowserController
Index
Constructors
__init__
Create a new instance.
Parameters
browser: Browser
max_open_pages_per_browser: int = 20keyword-only
header_generator: HeaderGenerator | None = _DEFAULT_HEADER_GENERATORkeyword-only
Returns None
Methods
close
Parameters
force: bool = Falsekeyword-only
Returns None
new_page
Parameters
page_options: Mapping[str, Any] | None = None
proxy_info: ProxyInfo | None = None
Returns Page
Controller for managing Playwright browser instances and their pages.
This class provides methods to manage pages within a browser instance, ensuring that the number of open pages does not exceed the specified limit and tracking the state of the pages.