from selenium import webdriver
driver = webdriver.Firefox()
driver.get('http://www.google.com')
el = driver.find_elements_by_xpath("//button[contains(string(), 'Lucky')]")[0]
action = webdriver.common.action_chains.ActionChains(driver)
action.move_to_element_with_offset(el, 5, 5)
action.click()
action.perform()
Selenium - щелкните в определенной позиции