MCPcopy Create free account
hub / github.com/apify/crawlee-python / close

Method close

src/crawlee/browsers/_browser_controller.py:89–97  ·  view source on GitHub ↗

Close the browser. Args: force: Whether to force close all open pages before closing the browser. Raises: ValueError: If there are still open pages when trying to close the browser.

(self, *, force: bool = False)

Source from the content-addressed store, hash-verified

87
88 @abstractmethod
89 async def close(self, *, force: bool = False) -> None:
90 """Close the browser.
91
92 Args:
93 force: Whether to force close all open pages before closing the browser.
94
95 Raises:
96 ValueError: If there are still open pages when trying to close the browser.
97 """

Callers 3

__aexit__Method · 0.45
_launch_new_browserMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected