For the below code
<li class="user ui-menu-item" role="presentation">
<a id="ui-id-52" class="ui-corner-all" tabindex="-1">
<em>User:</em>
Staff User
</a>
</li>
This is the scenario:
There is a text field, in which I enter the name Staff
, with that the related values for the staff are displayed in the dynamic list box, in the above scenario the id
is dynamically generated, and when I tried to select the value by class
, it is same for all the elements.
I want an xpath
expression to select the first available options in the list. I tried in many ways like with contains and starts-with, but no use. Please let me know your valuable suggestion.
Thanks in Advance Shiva.