FRAMEWORK » PLAYWRIGHT

Keyboard

Usage

See a full list of keyboard keys available here.

Examples

Moving the viewport:

js
await page.keyboard.press('PageDown');
await page.keyboard.press('Home');