I am trying to choose a option by Robot Framework native Keyword "Select From List" command, however it is failed with error message :
html page source:
<select id="reason" placeholder="Please select" style="width: 100%; display: none;" class="m-b-xs" data-role="combobox" aria-disabled="false" aria-readonly="false">
<option value="a">Assume</option>
<option value="b">New</option>
<option value="c">Renew</option>
<option value="d">Purchase</option>
<option value="e">Refinance</option>
<option value="f">Reschedul</option>
<option selected="selected" value="New">New</option>
</select>
I used value "Assume" or "a":
Choose Application Reason
Select From List xpath=//select[@id="reason"] Assume
Test was failed with error message:
INFO : Selecting option(s) 'Assume' from list
'xpath=//select[@id="reason"]'.
.....
FAIL :ValueError: Option 'Assume' not in list 'xpath=//select[@id="reason"]'.
INFO : Selecting option(s) 'a' from list 'xpath=//select[@id="reason"]'.
.....
FAIL : ValueError: Option 'a' not in list 'xpath=//select[@id="reason"]'.
But if I replace value "Assume" with default vale "New":
Choose Application Reason
Select From List xpath=//select[@id="reason"] New
test was passed.
Can anyone do the help? Thanks ahead.