Babak
Babak

Reputation: 1

How to click in a place with exaxt coordination in selenium python?

I want to click in exactly pointed place in the image below.

I tried by actions in selenium. But it doesn't work like in below :

mouse_tracker = driver.find_element(By.ID, "mouse-tracker")
ActionChains(driver).move_to_element_with_offset(mouse_tracker, 8, 0)
        .perform()

Upvotes: 0

Views: 33

Answers (1)

Tal Angel
Tal Angel

Reputation: 1772

mouse_tracker = driver.find_element(By.ID, "mouse-tracker")
ActionChains(driver).move_to_element_with_offset(mouse_tracker, 8, 0).click().perform()

Upvotes: 0

Related Questions