So Im trying to I click the next button using selenium, I\'ve tried with the code below, but it ends in error.
The element
This error message...
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)
...implies that the ChromeDriver was unable to locate the desired element.
As per the HTML you have shared to click on the element you can use either of the following Locator Strategies :
css_selector
:
driver.find_element_by_css_selector("input[name='submitNext'][value='Next']").click()
xpath
:
driver.find_element_by_xpath("//input[@name='submitNext' and @value='Next']").click()
However your main issue is the version compatibility between the binaries you are using as follows :
Supports Chrome v63-65
Supports Chrome v65-67
So there is a clear mismatch between the ChromeDriver v2.36 and the Chrome Browser v66.0
@Test
.