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

Function test_frame_should_respect_name

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

Source from the content-addressed store, hash-verified

1241
1242
1243async def test_frame_should_respect_name(page: Page, server: Server) -> None:
1244 await page.set_content("<iframe name=target></iframe>")
1245 assert page.frame(name="bogus") is None
1246 frame = page.frame(name="target")
1247 assert frame
1248 assert frame == page.main_frame.child_frames[0]
1249
1250
1251async def test_frame_should_respect_url(page: Page, server: Server) -> None:

Callers

nothing calls this directly

Calls 2

set_contentMethod · 0.45
frameMethod · 0.45

Tested by

no test coverage detected