Context object
Name of key to press, such as ArrowLeft. KeyInput for a list of all key names.
Optional
options: PressKeyOptionsOptions for key press and pupeeteer keyboard press: interval, times, delay, text.
await press(ctx, [key, ...modifiers], options);
await press(ctx, ['a','Control']); // Select all
await press(ctx, ['Backspace'], {timeBetweenPresses: 100, times: 5, pressDuration: 200});
Generated using TypeDoc
Simulates pressing a key, or a combination of keys.