title: selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element while trying to click Next button with selenium
body: <p>So Im trying to I click the next button using selenium, I've tried with the code below, but it ends in error.</p>
  
  <p>The element</p>
  
  <pre><code>&lt;input type="submit" name="submitNext" value="Next"&gt;
  </code></pre>
  
  <p>My code</p>
  
  <pre><code>driver.find_element_by_name("submitNext").click()
  </code></pre>
  
  <p>But then it outputs these errors</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/thomas/PycharmProjects/test/mainapp/main.py", line 194, in 
  &lt;module&gt;
      visa()
    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)
  </code></pre>
  
  <p>Anyone have any ideas as to how to click that button without errors?</p>