Select
Selects an option from a dropdown (select) element by its visible text.
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 select dropdown element.
- Visible Text - The text of the option to select as it appears in the dropdown.
Options
-
Selector Type - Type of selector used:
- XPath - Use XPath expression (default)
- CSS - Use CSS selector
-
Wait Timeout (sec) - Maximum time to wait for the select element to appear. Default is 5 seconds.
Examples
Select Country
Browser ID: {{browser_id}}
Selector: //select[@name='country']
Visible Text: United States
Select by CSS Selector
Browser ID: {{browser_id}}
Selector: select#year
Selector Type: CSS
Visible Text: 2024
Select from Dynamic Options
Browser ID: {{browser_id}}
Selector: //select[@id='category']
Visible Text: {{selected_category}}
Fill Form with Multiple Selects
1. Select node (Country):
Browser ID: {{browser_id}}
Selector: //select[@name='country']
Visible Text: Canada
2. Select node (Province):
Browser ID: {{browser_id}}
Selector: //select[@name='province']
Visible Text: Ontario
3. Select node (City):
Browser ID: {{browser_id}}
Selector: //select[@name='city']
Visible Text: Toronto
HTML Select Example
This node works with standard HTML select elements:
<select name="fruit">
<option value="1">Apple</option>
<option value="2">Banana</option>
<option value="3">Orange</option>
</select>
To select "Banana", use Visible Text: Banana
Tips
- Use the exact text as it appears in the dropdown
- Text matching is case-sensitive
- Works only with standard HTML
<select>elements - For custom dropdowns (div-based), use Click Element instead
- Use Get Select Options to retrieve available options first
- Whitespace in option text matters
Common Errors
- "Browser ID cannot be empty" - Connect to an Open Browser node
- "Selector cannot be empty" - Provide an XPath or CSS selector
- "Visible Text cannot be empty" - Provide the text of the option to select
- "Select element not found within X seconds" - The select element doesn't exist or takes longer to load
- "Option with text 'X' not found in the dropdown" - The specified option doesn't exist. Verify the text matches exactly
- "Timeout cannot be empty" - Provide a timeout value
Related Nodes
- Get Select Options - Get all dropdown options
- Get Value - Get currently selected option
- Click Element - For custom dropdowns