Send Keys
Sends keyboard keys or shortcuts to a web element. Supports special keys and modifier combinations like Ctrl+C, Alt+Tab, etc.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing the node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If Continue On Error property is true, no error is caught when the project is executed, even if the Catch node is used.
Input
- Browser ID - The browser session identifier from the Open Browser node.
- Selector - The XPath or CSS selector to locate the target element.
- Key - The key or text to send to the element. Can be empty when using only modifier keys.
Options
-
Selector Type - Type of selector used:
- XPath - Use XPath expression (default)
- CSS - Use CSS selector
-
Key Modifier1 - First modifier key to hold (optional):
- Enter, Tab, Home, End, Shift, Control, Alt, Pause, Escape, Space
- Page Up, Page Down, Left, Right, Up, Down
-
Key Modifier2 - Second modifier key to hold (optional, same options as Modifier1)
-
Key Modifier3 - Third modifier key to hold (optional, same options as Modifier1)
-
Wait Timeout (sec) - Maximum time to wait for the element to appear. Default is 5 seconds.
Examples
Press Enter Key
Browser ID: {{browser_id}}
Selector: //input[@name='search']
Key Modifier1: Enter
Send Ctrl+A (Select All)
Browser ID: {{browser_id}}
Selector: //textarea[@id='content']
Key Modifier1: Control
Key: a
Send Ctrl+C (Copy)
Browser ID: {{browser_id}}
Selector: //div[@class='text-content']
Key Modifier1: Control
Key: c
Press Tab Key
Browser ID: {{browser_id}}
Selector: //input[@id='field1']
Key Modifier1: Tab
Send Escape Key
Browser ID: {{browser_id}}
Selector: //body
Key Modifier1: Escape
Press Arrow Down
Browser ID: {{browser_id}}
Selector: //select[@id='dropdown']
Key Modifier1: Down
Send Ctrl+Shift+V (Paste without formatting)
Browser ID: {{browser_id}}
Selector: //div[@contenteditable='true']
Key Modifier1: Control
Key Modifier2: Shift
Key: v
Available Keys
- Navigation: Enter, Tab, Home, End, Escape, Space, Page Up, Page Down
- Arrow Keys: Left, Right, Up, Down
- Modifiers: Shift, Control, Alt
- Other: Pause
Tips
- The element is automatically focused before sending keys
- Multiple modifiers can be combined (e.g., Ctrl+Shift+key)
- Use this for keyboard shortcuts that can't be achieved with Type Text
- For simple text input, use Type Text instead
- The Key field can contain regular text characters combined with modifiers
Common Errors
- "Browser ID cannot be empty" - Connect to an Open Browser node
- "Selector cannot be empty" - Provide an XPath or CSS selector
- "Element not found within X seconds" - The element doesn't exist or takes longer to load. Verify selector and increase timeout
- "Timeout cannot be empty" - Provide a timeout value
Related Nodes
- Type Text - Type regular text into fields
- Click Element - Click elements
- Focus - Focus on an element