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

Function test_frame_should_respect_url

tests/async/test_page.py:1251–1254  ·  view source on GitHub ↗
(page: Page, server: Server)

Source from the content-addressed store, hash-verified

1249
1250
1251async def test_frame_should_respect_url(page: Page, server: Server) -> None:
1252 await page.set_content(f'<iframe src="{server.EMPTY_PAGE}"></iframe>')
1253 assert page.frame(url=re.compile(r"bogus")) is None
1254 assert must(page.frame(url=re.compile(r"empty"))).url == server.EMPTY_PAGE
1255
1256
1257async def test_press_should_work(page: Page, server: Server) -> None:

Callers

nothing calls this directly

Calls 3

mustFunction · 0.90
set_contentMethod · 0.45
frameMethod · 0.45

Tested by

no test coverage detected