I have this piece of HTML code:
<li class="ui-menu-item" id="ui-id-12" tabindex="-1"><a>2</a></li>
<a>2</a>
</li>
The id "ui-id-12" is dynamically changing with the number being the part that is changed so I was wondering how I would go about finding this element using Selenium & XPaths. I was considering finding the element using the content within the anchor element tags but was not sure if this was smart so I have come here instead to ask what would be the best option.