jeudi 9 septembre 2021

Python selenium click on a checkbox blue line

i tried to click on a checkbox using a seleniumcode. I tried to find the element by xpath, by id, by css_selector and by class_name. All of those gave the same not working result. I also asked some of my friends that also did not knew how to solve this. The thing that happens is, that at the point where selenium try to click the element it only wrap a blue border around it. Here is the code i used:

driver.find_element_by_xpath("/html/body/div/div[2]/div/div/div/form/div/div/div[5]/label/input").click()

Here is the actual result on the site that is shown (the conde not raise any Traceback):




Aucun commentaire:

Enregistrer un commentaire