Hello! I request your help to know how to identify an element by xpath using the content of the HTML element instead of the ID of the element
example:
In the image you can see how using the syntax xpath; //div[@aria-labelledby=‘ui-id-38’]//span[contains(.,“Accept”)]
I can find the content of the popup window, the which has an ID:19.
The IDs of this website change constantly, so I want to try to identify that same element but using the text it contains, since this is not a variable.