playwright_press_key
Simulate key presses on web pages to interact with elements, test functionality, or automate tasks. Optionally focus on specific elements using CSS selectors for precise control.
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 |