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

Function test_should_shift_raw_codes

tests/async/test_keyboard.py:346–357  ·  view source on GitHub ↗
(page: Page, server: Server)

Source from the content-addressed store, hash-verified

344
345
346async def test_should_shift_raw_codes(page: Page, server: Server) -> None:
347 await page.goto(server.PREFIX + "/input/keyboard.html")
348 await page.keyboard.press("Shift+Digit3")
349 assert await page.evaluate("() => getResult()") == "\n".join(
350 [
351 "Keydown: Shift ShiftLeft 16 [Shift]",
352 "Keydown: # Digit3 51 [Shift]", # 51 is # keyCode
353 "Keypress: # Digit3 35 35 [Shift]", # 35 is # charCode
354 "Keyup: # Digit3 51 [Shift]",
355 "Keyup: Shift ShiftLeft 16 []",
356 ]
357 )
358
359
360async def test_should_specify_repeat_property(page: Page, server: Server) -> None:

Callers

nothing calls this directly

Calls 3

gotoMethod · 0.45
pressMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected