I am trying to scrape from a webpage that changes it's class names and other element attributes dynamically (there is no pattern in the name of the class). I use code in the following format:
element_1 = driver.find_elements(By.XPATH, '//*[contains (@class, "DkEaL")]')a snippet of the webpage element is:
<button aria-label="cats-over-fence" jsaction="pane.rating.moreCats" jstcache="98" class="DkEaL" jsan="7.DkEaL,0.aria-label,0.jsaction">35 reviews</button>Is there any way to detect this element as it changes dynamically without manually inspecting it?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/7edd834a-0834-41d4-a73f-a150b7d354e4n%40googlegroups.com.