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

Function test_owner_frame

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

Source from the content-addressed store, hash-verified

182
183
184async def test_owner_frame(page: Page, server: Server, utils: Utils) -> None:
185 await page.goto(server.EMPTY_PAGE)
186 await utils.attach_frame(page, "frame1", server.EMPTY_PAGE)
187 frame = page.frames[1]
188 element_handle = cast(ElementHandle, await frame.evaluate_handle("document.body"))
189 assert await element_handle.owner_frame() == frame
190
191
192async def test_owner_frame_for_cross_process_iframes(

Callers

nothing calls this directly

Calls 4

gotoMethod · 0.45
attach_frameMethod · 0.45
evaluate_handleMethod · 0.45
owner_frameMethod · 0.45

Tested by

no test coverage detected