(page: Page, server: Server, utils: Utils)
| 182 | |
| 183 | |
| 184 | async 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 | |
| 192 | async def test_owner_frame_for_cross_process_iframes( |
nothing calls this directly
no test coverage detected