Message: element click intercepted: Element is not clickable at point (774, 9241)

32 views
Skip to first unread message

noname

unread,
Nov 20, 2022, 11:58:45 PM11/20/22
to Selenium Users
I am new to selenium and I have been struggling with the following error: " Message: element click intercepted: Element is not clickable at point (774, 9241) "

My code is as follow:
 ```
driver = webdriver.Chrome(options=chrome_options)
driver.maximize_window()
for el in states_pages:
    driver.get(el)
    err = False
    i = 0
    while not err:
        try:
            WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.CLASS_NAME, "tpl-showmore-content"))).click()
            more_button = driver.find_element(by=By.CLASS_NAME, value='tpl-showmore-content')
            #more_button.click()
            driver.execute_script("arguments[0].click();", more_button)
        except selexp.NoSuchElementException as e:
            err = True
            print(e)
        except selexp.ElementClickInterceptedException as e:
            err = True
            print(e)
        except selexp.TimeoutException as e:
            err = True
            print(e)
        i+=1
        #print("IIII", i)

```

What am I doing wrong? I have tried probably all existing advice, but nothing worked.
Reply all
Reply to author
Forward
0 new messages