MCPcopy Create free account
hub / github.com/microsoft/playwright-python / test_should_expose_video_path

Function test_should_expose_video_path

tests/async/test_video.py:23–31  ·  view source on GitHub ↗
(
    browser: Browser, tmp_path: Path, server: Server
)

Source from the content-addressed store, hash-verified

21
22
23async def test_should_expose_video_path(
24 browser: Browser, tmp_path: Path, server: Server
25) -> None:
26 page = await browser.new_page(record_video_dir=tmp_path)
27 await page.goto(server.PREFIX + "/grid.html")
28 assert page.video
29 path = await page.video.path()
30 assert str(tmp_path) in str(path)
31 await page.context.close()
32
33
34async def test_short_video_should_throw(

Callers

nothing calls this directly

Calls 4

new_pageMethod · 0.45
gotoMethod · 0.45
pathMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected