I've got an HTML page with the following format:
<select id="name_list">
<optgroup label="env1">
<option value="comp1">comp1 details</option>
</optgroup>
<optgroup label="env2">
<option value="comp1">comp1 details</option>
</optgroup>
</select>
And trying to click on the option with value=comp1 which is inside optgroup-env2 specifically. Is there any way to specify this path? Note that both 'options' values are exactly the same under the different 'optgroup' nodes...
Many thanks!