Q&A
"selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element" while clicking a 'Next' button with Selenium
"selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element" while clicking a 'Next' button with Selenium
I’m trying to click the Next button using Selenium, I've tried with the code below, but it ends in error.
The element
My code
driver.find_element_by_name("submitNext").click()
But then it outputs these errors:
Traceback (most recent call last): File "C:/Users/thomas/PycharmProjects/test/mainapp/main.py", line 194, invisa() File "C:/Users/thomas/PycharmProjects/test/mainapp/main.py", line 174, in visa driver.find_element_by_name("submitNext").click() File "C:\Users\thomas\PycharmProjects\BudgetMain\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 487, in find_element_by_name return self.find_element(by=By.NAME, value=name) File "C:\Users\thomas\PycharmProjects\BudgetMain\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 955, in find_element 'value': value})['value'] File "C:\Users\thomas\PycharmProjects\BudgetMain\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 312, in execute self.error_handler.check_response(response) File "C:\Users\thomas\PycharmProjects\BudgetMain\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"name","selector":"submitNext"} (Session info: chrome=66.0.3359.170) (Driver info: chromedriver=2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91),platform=Windows NT 10.0.16299 x86_64)
How can I click that button without errors?
Your Answer
0 answers
Hot tools Tags
Hot Questions
PHP: How to handle <![CDATA[ with SimpleXMLElement?
2026-01-04 14:22:14
C# convert int to string with padding zeros?
2026-01-04 14:01:04
Which is faster: multiple single INSERTs or one multiple-row INSERT?
2026-01-04 13:43:12
List of lists changes reflected across sublists unexpectedly
2026-01-04 13:22:10
MVC for advanced PHP developers [closed]
2026-01-04 13:01:15
Popular tool
vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation
VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library
PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment
VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library
SublimeText3 Chinese version
Chinese version, very easy to use
Hot Topics
Douyin level price list 1-75
20417
7
20417
7
wifi shows no ip assigned
13577
4
13577
4
Hot Article
How to set up price alerts so you don't miss key entry points?
2026-01-01
By DDD
Why do professional traders advise newbies to start with low leverage?
2026-01-01
By DDD
Tutorial on existence check of nested array values in PHP multidimensional array
2025-12-28
By DDD
How to draw dotted lines in PS How to draw various dotted lines in PS
2025-12-28
By DDD
How to Fix a 'KERNEL_DATA_INPAGE_ERROR' on Windows?
2026-01-02
By 下次还敢






