I'm looking for some hint how to use xpath "ends-with" expression. I've got such element to find:
<div class="osaiowrhg29875n345" id="react-select-4-listbox">
Previous selector I used was:
//div[starts-with(@id,'react-select-4')]
and its working properly but there are more of such elements and the number is changing so I wanted to catch only the ending of this ID using
//div[ends-with(@id,'listbox')]
Why its not working for me?