We need to click from 1 to 50 respectively
number elements:
1 - <span class="box" style="z-index:99"></span> 2 - <span class="box" style="z-index:98"></span> 3 - <span class="box" style="z-index:97"></span> 4 - <span class="box" style="z-index:96"></span> 5 - <span class="box" style="z-index:95"></span> 6 - <span class="box" style="z-index:94"></span> 7 - <span class="box" style="z-index:93"></span> 8 - <span class="box" style="z-index:92"></span>
My Code :
import time
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("http://zzzscore.com/1to50/en/?ts=1585514800920")
time.sleep(2)
element_list = driver.find_element_by_css_selector("[style^=index]")
i = 99
while i > 50:
element_list[i].click()
I want the code to click numbers from 1 to 50 respectively, You can see the elements of the numbers in the attachment, I want to use the pattern (index 99 in element 1, index 98 in element 2...) between the elements, but I couldn't