I want to click the button that is visible after freezing. Its html:
<span class="info"></span>
I used this code:
import selenium.webdriver as webdriver from selenium.webdriver.common.action_chains import ActionChains url = "http://example.com" driver = webdriver.Firefox() driver.get(url) element = driver.find_element_by_class_name("info") hov = ActionChains(driver).move_to_element(element) hov.perform() element.click()
This does not work. I have an error related to the last line of element.click(): code element.click():
selenium.common.exceptions.ElementNotVisibleException: Message: \ u'Element is not currently visible and so may not be interacted with'
Any suggestions please?
source share