title: Python with Selenium: Unable to find element to type in
body: <p>I'm trying to find an element on website using Selenium but am having a hard time:</p>
  
  <p>The page I'm looking at: <a href="https://corporate.axisbank.co.in/" rel="nofollow noreferrer">https://corporate.axisbank.co.in/</a></p>
  
  <p>The HTML from the selected element looks as follows:</p>
  
  <pre><code>&lt;input name="FORM_CORPORATEID" type="text" onpaste="return false" ondrop="return false" ondrag="return false" oncopy="return false" oncut="return false" autocomplete="off" id="corporateId" class="cm-input-box has-gradient-border"&gt;
  </code></pre>
  
  <p>I've tried using Id, XPath etc but keep getting errors:</p>
  
  <pre><code>from selenium import webdriver
  
  driver = webdriver.Chrome()
  bankurl= "https://corporate.axisbank.co.in/"
  driver.get(bankurl)
  driver.find_element_by_name("FORM_CORPORATEID").send_keys("USERNAME")
  </code></pre>
  
  <p>I end up getting the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/alwyn.kotze/PycharmProjects/AlwynAuto1/Automations/Axis1.py", line 8, in &lt;module&gt;
      driver.find_element_by_name("FORM_CORPORATEID").send_keys("USERNAME")
    File "C:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 489, in find_element_by_name
      return self.find_element(by=By.NAME, value=name)
    File "C:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 957, in find_element
      'value': value})['value']
    File "C:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 314, in execute
      self.error_handler.check_response(response)
    File "C:\Python\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":"FORM_CORPORATEID"}
    (Session info: chrome=66.0.3359.181)
    (Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 10.0.16299 x86_64)
  </code></pre>
  
  <p>What could be causing this error?</p>