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

Function test_content_frame

tests/async/test_element_handle.py:153–159  ·  view source on GitHub ↗
(page: Page, server: Server, utils: Utils)

Source from the content-addressed store, hash-verified

151
152
153async def test_content_frame(page: Page, server: Server, utils: Utils) -> None:
154 await page.goto(server.EMPTY_PAGE)
155 await utils.attach_frame(page, "frame1", server.EMPTY_PAGE)
156 element_handle = await page.query_selector("#frame1")
157 assert element_handle
158 frame = await element_handle.content_frame()
159 assert frame == page.frames[1]
160
161
162async def test_content_frame_for_non_iframes(

Callers

nothing calls this directly

Calls 4

gotoMethod · 0.45
attach_frameMethod · 0.45
query_selectorMethod · 0.45
content_frameMethod · 0.45

Tested by

no test coverage detected