Is there a way to return the xpath of an element in Selenium during runtime whos xpath changes every time you return to the page? I need to extract a random number from the xpath of the element.
Ex: //div[@id='element_id-87462'] where 87462 is a new random number everytime the element is loaded. I want to be able to extract 87462 so I can identify the object.