I have html that I am trying to scrape and I want selenium to loop through x amount of times because there are x html classes that contain heat-yyyy in them.
I would use the code
class_count_text = _______.text class_count = len(class_count_text)
and then tell Python to loop through class_count times.
Should I be using driver.find_element(By.Xpath) or By.Class_Name?
class_count = driver.find_elements(By.XPATH, '//*[contains(@class,"heat-")]')
How to get selenium to count how many classes there are containing class name?