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

Function test_should_press_plus

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

Source from the content-addressed store, hash-verified

285
286
287async def test_should_press_plus(page: Page, server: Server) -> None:
288 await page.goto(server.PREFIX + "/input/keyboard.html")
289 await page.keyboard.press("+")
290 assert await page.evaluate("() => getResult()") == "\n".join(
291 [
292 "Keydown: + Equal 187 []", # 192 is ` keyCode
293 "Keypress: + Equal 43 43 []", # 126 is ~ charCode
294 "Keyup: + Equal 187 []",
295 ]
296 )
297
298
299async def test_should_press_shift_plus(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