B
B
Boris [A-Z][a-z]+2019-12-18 22:09:50
Python
Boris [A-Z][a-z]+, 2019-12-18 22:09:50

How to get object coordinates with Selenium using python?

Hello!
I need to click on an object, but without using Selenium (in this case, the site understands that it is a bot).
I use pyautogui for this. Sometimes the target button is located a dozen pixels to the side.
I know that Selenium has a my_button.location method in its arsenal. But it gives out not what I need (the origin is the upper left corner).
Or maybe I'm misinterpreting the coordinates received from Selenium?
Tell me please :)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question