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

Function test_should_press_shift_plus

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

Source from the content-addressed store, hash-verified

297
298
299async def test_should_press_shift_plus(page: Page, server: Server) -> None:
300 await page.goto(server.PREFIX + "/input/keyboard.html")
301 await page.keyboard.press("Shift++")
302 assert await page.evaluate("() => getResult()") == "\n".join(
303 [
304 "Keydown: Shift ShiftLeft 16 [Shift]",
305 "Keydown: + Equal 187 [Shift]", # 192 is ` keyCode
306 "Keypress: + Equal 43 43 [Shift]", # 126 is ~ charCode
307 "Keyup: + Equal 187 [Shift]",
308 "Keyup: Shift ShiftLeft 16 []",
309 ]
310 )
311
312
313async def test_should_support_plus_separated_modifiers(

Callers

nothing calls this directly

Calls 3

gotoMethod · 0.45
pressMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected