I have a web process that I am working through to automate. The HTML looks as following:
<td class="v-formlayout-contentcell">
<div class="v-select v-widget v-has-width" id="gwt-uid-46" aria-labelledby="gwt-uid-45" style="width: 225px;">
<select class="v-select-select" size="1" tabindex="0" style="width: 225px;">
<option value="null"></option><option value="1">21/24 Long Term Auction Credit Study</option><option value="2">21/24 Long Term Auction</option></select></div></td>
I always know what my options are from the dropdown list.
If I know what option needs to be selected, is there a way to select that based on text of option. In this example I want to select 21/24 Long Term Auction Credit Study
.
I cant use id = "gwt-uid-46"
as I fear that might easily change.
Edit:
I noticed in the the HTML that there is another class with name as class="v-select-select"
. So, none of the answers posted so far work as the it finds that class instead of the one I am interested in.