jeudi 31 décembre 2020

python selenium click checkbox one by one instead of all together

df3 = list(df2) for i in df3:
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, "//html//body//div[2]//div//div[2]//div[1]//form//div//div[2]//div//div[2]//label[{}]//input".format(i)))).click()

I managed to click all selected checkbox by loop over a list but I would like to click the checkbox one by one instead of all together




Aucun commentaire:

Enregistrer un commentaire