selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable (Session info: chrome=89.0.4389.90) code example

Example 1: selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable

from selenium.webdriver.common.action_chains import ActionChains

button = driver.find_element_by_class_name(u"infoDismiss")
driver.implicitly_wait(10)
ActionChains(driver).move_to_element(button).click(button).perform()

Example 2: selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable

Usually raised when the element you wish to interact with is not visible

Tags:

Misc Example