I have an Xpath like this that is changing every time I open the url
//*[@id="awsui-select-23"]/div/awsui-icon/span
What changes is the number after select as for the example:
//*[@id="awsui-select-41"]/div/awsui-icon/span
I tried to give the following xpath but it's not working
("//*[contains(@id, 'awsui-select-')]")
Can you help me understand how should I create/change the Xpath in my code so I can access the element each time the url is opening?