remove the old context tree (#268)

This commit is contained in:
LawyZheng
2024-05-08 10:16:30 +08:00
committed by GitHub
parent bce6326eef
commit 8d87e71891
4 changed files with 10 additions and 20 deletions

View File

@@ -136,13 +136,11 @@ class BrowserState:
browser_context: BrowserContext | None = None,
page: Page | None = None,
browser_artifacts: BrowserArtifacts = BrowserArtifacts(),
new_context_tree: bool = False,
):
self.pw = pw
self.browser_context = browser_context
self.page = page
self.browser_artifacts = browser_artifacts
self.new_context_tree = new_context_tree
async def _close_all_other_pages(self) -> None:
if not self.browser_context or not self.page: