playwright_press_key
Automate key presses in a browser environment using Playwright. Specify a key (e.g., 'Enter', 'ArrowDown', 'a') and optionally, a CSS selector to focus the element before triggering the key press.
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 |
Input Schema (JSON Schema)
{
"properties": {
"key": {
"description": "Key to press (e.g. 'Enter', 'ArrowDown', 'a')",
"type": "string"
},
"selector": {
"description": "Optional CSS selector to focus before pressing key",
"type": "string"
}
},
"required": [
"key"
],
"type": "object"
}