playwright_press_key
Simulate keyboard key presses on web elements, optionally focusing on a specific UI element first, to facilitate UI testing and automation with AI vision capabilities.
Instructions
Press a keyboard key (optionally focusing an element first)
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 |