playwright_press_key
Simulate keyboard key presses in a browser environment. Specify the key (e.g., 'Enter', 'a') and optionally focus on a specific element using a CSS selector. Enables interaction with web pages for automation tasks.
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 |