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

Function test_content_frame

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

Source from the content-addressed store, hash-verified

145
146
147def test_content_frame(page: Page, server: Server, utils: Utils) -> None:
148 page.goto(server.EMPTY_PAGE)
149 utils.attach_frame(page, "frame1", server.EMPTY_PAGE)
150 element_handle = page.query_selector("#frame1")
151 assert element_handle
152 frame = element_handle.content_frame()
153 assert frame == page.frames[1]
154
155
156def 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