Problem: I am looking for a way to run a test that is able to disambiguate between select controls that have the same value in more than one place.
Example:
I am trying to choose the third "monday" from a select control
ie.select_list( :id , 'choose-day' ).set( '-monday' );
where the select control has a kind of "outline" format in the control itself:
alice
-monday
-tuesday
bob
-monday
-tuesday
charlie
-monday
-tuesday
Given that the text is identical (and I do not know what the option values are ahead of time) is there a way to code the test such that the monday under charlie is the one that gets selected?