Error message - Element not interactable Selenium webdriver [duplicate] Error message - Element not interactable Selenium webdriver [duplicate] selenium selenium

Error message - Element not interactable Selenium webdriver [duplicate]


Use Action class to click the element.

from selenium import webdriverfrom selenium.webdriver.support.ui import WebDriverWaitfrom selenium.webdriver.support import expected_conditions as ECfrom selenium.webdriver.common.by import Byfrom selenium.webdriver.common.action_chains import ActionChainsd.get("https://pointsbet.com.au/basketball/NCAA-March-Madness")WebDriverWait(d,10).until(EC.element_to_be_clickable((By.XPATH,'//h2/a[@class="ng-binding"]'))).click()expandable = WebDriverWait(d, 10).until(EC.element_to_be_clickable((By.CSS_SELECTOR, ".h2.accordion-toggle.event-name")))expandables = d.find_elements_by_css_selector('.h2.accordion-toggle.event-name')for item in expandables:  ActionChains(d).move_to_element(item).click().perform() # item.click()posts = d.find_elements_by_class_name("market")for post in posts:    print(post.text)d.quit()