优化2
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user