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

Function test_frame_press_should_work

tests/async/test_page.py:1263–1270  ·  view source on GitHub ↗
(page: Page, server: Server)

Source from the content-addressed store, hash-verified

1261
1262
1263async def test_frame_press_should_work(page: Page, server: Server) -> None:
1264 await page.set_content(
1265 f'<iframe name=inner src="{server.PREFIX}/input/textarea.html"></iframe>'
1266 )
1267 frame = page.frame("inner")
1268 assert frame
1269 await frame.press("textarea", "a")
1270 assert await frame.evaluate("document.querySelector('textarea').value") == "a"
1271
1272
1273async def test_should_emulate_reduced_motion(page: Page, server: Server) -> None:

Callers

nothing calls this directly

Calls 4

set_contentMethod · 0.45
frameMethod · 0.45
pressMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected