playwright_press_key
Press a specific keyboard key on a web page using its name (e.g., 'Enter', 'a'). Optionally focus on an element with a CSS selector before pressing the key.
Instructions
Press a keyboard key
Input Schema
Name | Required | Description | Default |
---|---|---|---|
key | Yes | Key to press (e.g. 'Enter', 'ArrowDown', 'a') | |
selector | No | Optional CSS selector to focus before pressing key |