def click(self, element): actions = webdriver.ActionChains(self.driver) actions.move_to_element(element) actions.click(element) actions.perform()