title: Python with selenium: unable to locate element which really exist
body: <p>I've been trying fill input:  </p>
  
  <pre><code>&lt;input id="PASSFIELD1" class="logField" type="password" onkeyup="next(this, event);" maxlength="1" autocomplete="off" name="PASSFIELD1"&gt;&lt;/input&gt;
  </code></pre>
  
  <p>To do this, I have to find this element.  </p>
  
  <p>I tried below things:  </p>
  
  <ol>
  <li><p><code>pass1=driver.find_element_by_name("PASSFIELD1")</code>  </p></li>
  <li><p><code>pass1=driver.find_element_by_id("PASSFIELD1")</code>  </p></li>
  <li><p><code>pass1= driver.find_element_by_xpath("/html/body/div[4]/div/div/div[2]/div/form/div[3]/table/tbody/tr[3]/td[2]/div/input[1]")</code>  (path from firebug)  </p></li>
  <li><p>Even wait 100 seconds for it </p></li>
  </ol>
  
  <p><code>self.wait.until(EC.visibility_of_element_located((By.XPATH,"/html/body/div[4]/div/div/div[2]/div/form/div[3]/table/tbody/tr[3]/td[2]/div/input[1]")))
  self.assertTrue(self.driver.find_element_by_xpath("/html/body/div[4]/div/div/div[2]/div/form/div[3]/table/tbody/tr[3]/td[2]/div/input[1]"))</code>  </p>
  
  <p>I always get:  </p>
  
  <blockquote>
    <p>selenium.common.exceptions.NoSuchElementException: Message: 'Unable to locate element: (...)</p>
  </blockquote>
  
  <p>Do you know what I am doing wrong?</p>