The Select pull-down menu command can only be used with a HTML standard select element. If a non-select element is specified, an error message saying The HTML tag of the target element of the "Select" command must be "select", but the HTML tag of the element "***" is "***".
will be displayed.
Please use either method 1 or 2 below to correct the problem.
1. Look for a select element
First, temporarily hide the element and look for another select element.
Select elements have the following characteristics.
- UI element name: "***" combo box
- Locator:
- CSS: Anything starting with select
e.g. css=select.***
- XPath: Ending with select
e.g. xpath=//***/select[1]
- CSS: Anything starting with select
If a select element is found, specify the UI element to the Select pull-down menu command.
2. Change the command to click one.
If no select element is found, the combo box does not consist of a HTML standard select element. And the Select pull-down menu cannot be used, so use the Click command.
First, click the UI element of the select box.
When choices appear, capture again and click a UI element of the choices.