XPath to element with changing id?
I am trying to locate one element using Selenium with XPath. When I inspect the same element and copy the XPath, it is //*[@id="Body react-aria-**16**"]/div/div/div/ul/li/div However, the number "16" may change every time I load the page. How can I reliably locate this element using find_element(By.XPATH, XPath)? >Solution : To eliminate dependence on the trailing… Read More XPath to element with changing id?