samedi 29 juillet 2017

How to find coordinates(x, y) of checkbox with Selenium python

I would like to find the position (x, y) of a checkbox, but unfortunately after several searches I have not found solutions ... (Even following the instructions in this answer: Selenium: get coordinates or dimensions of element with Python)

Here is my code:

Locate = wait (browser, 20) .until (EC.element_to_be_clickable ((By.ID, 'recaptcha-anchor')))
Location = locate.location
Size = locate.size
Print location
Print size

Unfortunately, this action returns me coordinates not going towards the direction of the checkbox in question ...

Did you have a solution, or is it really impossible to do this?

Thank you in advance!




Aucun commentaire:

Enregistrer un commentaire