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

Function baseline

tests/async/test_browsercontext.py:178–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176
177async def test_user_agent_should_work(browser: Browser, server: Server) -> None:
178 async def baseline() -> None:
179 context = await browser.new_context()
180 page = await context.new_page()
181 assert "Mozilla" in await page.evaluate("navigator.userAgent")
182 await context.close()
183
184 await baseline()
185

Calls 7

new_contextMethod · 0.45
new_pageMethod · 0.45
evaluateMethod · 0.45
closeMethod · 0.45
gotoMethod · 0.45
add_script_tagMethod · 0.45
attach_frameMethod · 0.45

Tested by

no test coverage detected