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

Function browser

tests/async/conftest.py:79–84  ·  view source on GitHub ↗
(
    browser_factory: "Callable[..., asyncio.Future[Browser]]",
)

Source from the content-addressed store, hash-verified

77
78@pytest.fixture(scope="session")
79async def browser(
80 browser_factory: "Callable[..., asyncio.Future[Browser]]",
81) -> AsyncGenerator[Browser, None]:
82 browser = await browser_factory()
83 yield browser
84 await browser.close()
85
86
87@pytest.fixture(scope="session")

Callers

nothing calls this directly

Calls 2

browser_factoryFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected