At first I used JavaScript code, it worked amazingly until the website clicked.
So, I found this solution:
First, import ActionChains for Python & Actively this:
from selenium.webdriver.common.action_chains import ActionChains actions = ActionChains(driver)
To click on a specific point in your sessions, use this:
actions.move_by_offset(X coordinates, Y coordinates).click().perform()
NOTE. The above code will only work if the mouse is not touching, use this to reset the mouse coordinates:
actions.move_to_element_with_offset(driver.find_element_by_tag_name('body'), 0,0))
In full:
actions.move_to_element_with_offset(driver.find_element_by_tag_name('body'), 0,0) actions.move_by_offset(X coordinates, Y coordinates).click().perform()
source share