How do you handle dynamic web elements in Selenium WebDriver that change their IDs upon page refresh?