Skip to content

Can't select option when there are 2 options with value "-1" and "1" [fixed] #71

Closed
@gabyngsp

Description

@gabyngsp

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions