If the path of the xpath is right, maybe you can try this method to solve this problem. Replace the old code with the following code:
button = driver.find_element_by_xpath("xpath")
driver.execute_script("arguments[0].click();", button)
I solved this problem before, but to be honestly, I don’t know the reason.
More Related Contents:
- Unable to locate element using selenium chrome webdriver in python selenium
- Selenium not able to click on Get Data button on using Python
- Python Selenium – get href value
- ElementClickInterceptedException: Message: element click intercepted: Element is not clickable with Selenium and Python
- How to retrieve partial text from a text node using Selenium and Python
- selenium two xpath tests in one
- How to select kendo dropdown element with unselectable=”on” attribute using Selenium and Python
- NoSuchElementException: Message: Unable to locate element while trying to click on the button VISA through Selenium and Python
- How to retrieve the title attribute through Selenium using Python?
- selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element while trying to click Next button with selenium
- Select iframe using Python + Selenium
- StaleElementException when iterating with Python
- Selenium Compound class names not permitted
- ElementNotInteractableException: Message: element not interactable error while sending text to Email field on Quora using Selenium with Python
- ElementNotInteractableException: Message: element not interactable error sending text in search field using Selenium Python
- How to find element by part of its id name in selenium with python
- “selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element” while clicking a ‘Next’ button with Selenium
- How to get background-image from inline css using selenium
- Can not click on a Element: ElementClickInterceptedException in Splinter / Selenium
- ElementNotVisibleException: Message: element not interactable error while trying to click a button through Selenium and Python
- Python Selenium WebDriver. Writing my own expected condition
- Unable to locate element of credit card number using selenium python
- Message: Element could not be scrolled into view while trying to click on an option within a dropdown menu through Selenium
- Selenium Switch Tabs
- Python: find_element_by_css_selector
- selenium – Failed to execute ‘evaluate’ on ‘Document’: The string is not a valid XPath expression
- How to send text to the Password field within https://mail.protonmail.com registration page?
- How to click on the anchor element when the spinner obscures it using Selenium and Python?
- Selecting options using Selenium and Python
- org.openqa.selenium.ElementClickInterceptedException: element click intercepted error using Selenium and Java in headless mode