This commit is contained in:
2026-06-09 16:47:20 +08:00
parent 731552f93d
commit d27e123624
3 changed files with 51 additions and 61 deletions
+2 -5
View File
@@ -64,12 +64,9 @@ class _FakeBrowserPool:
self.contexts.append(ctx)
return ctx
async def create_persistent_page(self, context: _FakeContext) -> _FakePage:
return _FakePage(self, context)
@asynccontextmanager
async def navigation_slot(self):
yield
async def page_in_context(self, context: _FakeContext):
yield _FakePage(self, context)
async def close_context(self, context: _FakeContext):
await context.close()