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

Function browser

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

Source from the content-addressed store, hash-verified

24
25@pytest.fixture(scope="session")
26async def browser(
27 browser_factory: "Callable[..., asyncio.Future[Browser]]",
28) -> AsyncGenerator[Browser, None]:
29 browser = await browser_factory(proxy={"server": "dummy"})
30 yield browser
31 await browser.close()
32
33
34async def test_should_use_proxy(

Callers

nothing calls this directly

Calls 2

browser_factoryFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected