MCPcopy Create free account
hub / github.com/microsoft/playwright-python / test_should_press_the_meta_key

Function test_should_press_the_meta_key

tests/async/test_keyboard.py:518–527  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

516
517
518async def test_should_press_the_meta_key(page: Page) -> None:
519 lastEvent = await captureLastKeydown(page)
520 await page.keyboard.press("Meta")
521 v = await lastEvent.json_value()
522 metaKey = v["metaKey"]
523 key = v["key"]
524 code = v["code"]
525 assert key == "Meta"
526 assert code == "MetaLeft"
527 assert metaKey
528
529
530async def test_should_work_after_a_cross_origin_navigation(

Callers

nothing calls this directly

Calls 3

captureLastKeydownFunction · 0.85
pressMethod · 0.45
json_valueMethod · 0.45

Tested by

no test coverage detected