MCPcopy Create free account
hub / github.com/Vinyzu/Botright / test_frame_parent

Function test_frame_parent

tests/playwright_tests/test_frames.py:229–234  ·  view source on GitHub ↗
(page, utils, server)

Source from the content-addressed store, hash-verified

227
228@pytest.mark.asyncio
229async def test_frame_parent(page, utils, server):
230 await utils.attach_frame(page, "frame1", server.EMPTY_PAGE)
231 await utils.attach_frame(page, "frame2", server.EMPTY_PAGE)
232 assert page.frames[0].parent_frame is None
233 assert page.frames[1].parent_frame == page.main_frame
234 assert page.frames[2].parent_frame == page.main_frame
235
236
237@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

attach_frameMethod · 0.80

Tested by

no test coverage detected