MCPcopy Index your code
hub / github.com/microsoft/playwright-python / context

Function context

tests/async/conftest.py:122–127  ·  view source on GitHub ↗
(
    context_factory: "Callable[..., asyncio.Future[BrowserContext]]",
)

Source from the content-addressed store, hash-verified

120
121@pytest.fixture
122async def context(
123 context_factory: "Callable[..., asyncio.Future[BrowserContext]]",
124) -> AsyncGenerator[BrowserContext, None]:
125 context = await context_factory()
126 yield context
127 await context.close()
128
129
130@pytest.fixture

Callers

nothing calls this directly

Calls 2

context_factoryFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected