Closed
Description
In the form, there is a selector with the following option values.
<select id="child-age">
<option value="-1">Age</option>
<option value="0">Under 1</option>
<option value="1">1</option>
<option value="2">2</option>
Using tagui python library, i have the following code to select the option value "1"
t.click('//select[@id="child-age"]')
t.wait(1)
t.select('//select[@id="child-age"]','1')
When I run the above, it could not select the correct select option.
I did a test to first select option value '2' and it was successfully. Then I change the selection value from '2' to '1', instead of selecting '1', it selected the option with value '-1'.