close

[Solved] selenium.common.exceptions.ElementClickInterceptedException: Message: Element is not clickable

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to use selenium and I am trying to click on span button But I am facing following error selenium.common.exceptions.ElementClickInterceptedException: Message: Element is not clickable in Python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How selenium.common.exceptions.ElementClickInterceptedException: Message: Element is not clickable Error Occurs ?

I am trying to use selenium and I am trying to click on span button But I am facing following error.

selenium.common.exceptions.ElementClickInterceptedException: Message: 
Element <span class="taLnk ulBlueLinks"> is not clickable at point

How To Solve selenium.common.exceptions.ElementClickInterceptedException: Message: Element is not clickable Error ?

  1. How To Solve selenium.common.exceptions.ElementClickInterceptedException: Message: Element is not clickable Error ?

    To Solve selenium.common.exceptions.ElementClickInterceptedException: Message: Element is not clickable Error Use CSS Selector element = driver.find_element_by_css('div[class*=”your_class_name”]') driver.execute_script(“arguments[0].click();”, element)

  2. selenium.common.exceptions.ElementClickInterceptedException: Message: Element is not clickable

    To Solve selenium.common.exceptions.ElementClickInterceptedException: Message: Element is not clickable Error Use CSS Selector element = driver.find_element_by_css('div[class*=”your_class_name”]') driver.execute_script(“arguments[0].click();”, element)

Solution 1: Use this method

element = driver.find_element_by_css('div[class*="your_class_name"]')
driver.execute_script("arguments[0].click();", element)

Solution 2: Try this method

element = driver.find_element_by_css('div[class*="your_class_name"]')
webdriver.ActionChains(driver).move_to_element(element ).click(element ).perform()

Solution 3: Using CSS_SELECTOR

WebDriverWait(driver, 20).until(EC.invisibility_of_element((By.CSS_SELECTOR, "div.your_class_name")))

driver.execute_script("arguments[0].click();", WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "span.taLnk.ulBlueLinks"))))

Solution 4: Using XPATH

WebDriverWait(driver, 20).until(EC.invisibility_of_element((By.XPATH, "//div[@class='your_class_name']")))

driver.execute_script("arguments[0].click();", WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//span[@class='taLnk ulBlueLinks']"))))

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment