title: selenium webdriver no element found error in internet explorer
body: <p>I am getting below error in <code>Internet explorer 8</code> but working same in <code>Firefox</code> (Both name, xpath are same)</p>
  
  <pre><code>"Unable to find element with name == username (WARNING: The server did not provide any stacktrace information)"
  </code></pre>
  
  <p>My HTML Looks like</p>
  
  <pre><code>&lt;class=form&gt;User Name 
  
  &lt;INPUT tabIndex=0 size=22 name=username autocomplete="off"\&gt;
  
  class=form&gt;Password
  
  &lt;INPUT tabIndex=0 onkeypress="checkCapsLock( event )" value="" size=22 type=password name=password autocomplete="off\&gt;
  </code></pre>
  
  <p>My JAVA Code :</p>
  
  <pre><code>File file = new File("D:/vishwas/Selenium/IEDriverServer.exe");    
  System.setProperty("webdriver.ie.driver", file.getAbsolutePath());    
  WebDriver driver = new InternetExplorerDriver();    
  driver.get("http://10.26.210.74:9080/cbaUserAdmin/");    
  WebElement Name = driver.findElement(By.xpath("//input[@name='username']"));    
  Name.sendKeys(new String[]{"username"});    
  WebElement Pass = driver.findElement(By.xpath("//input[@name='password']"));    
  Pass.sendKeys(new String[]{"password"});
  </code></pre>
  
  <p>Full HTML Code of this Page:</p>
  
  <pre><code>&lt;table bgcolor="#ffffd0" cellPadding="1" cellSpacing="1" border=0 &gt;
  
              &lt;tr&gt;
                  &lt;td width="5%"&gt;&amp;nbsp;&lt;/td&gt;
                  &lt;td width="30%"&gt;&amp;nbsp;&lt;/td&gt;
                  &lt;td width="65%"&gt;&amp;nbsp;&lt;/td&gt;
  
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                  &lt;td colspan="2"&gt;
                      &lt;FONT SIZE="3"&gt;&lt;B&gt;Log on&lt;/B&gt;&lt;/FONT&gt;
                  &lt;/td&gt;           
                  &lt;td&gt;&amp;nbsp;&lt;/td&gt;                     
              &lt;/tr&gt;
              &lt;tr&gt;&lt;td colspan=4&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                  &lt;td class="form"&gt;User Name&lt;/td&gt;
                  &lt;td class="form"&gt;
                      &lt;input type="text" tabindex="0" size="22" name="username" autocomplete="off" /&gt;
                  &lt;/td&gt;           
                  &lt;td&gt;&amp;nbsp;&lt;/td&gt;                     
              &lt;/tr&gt;   
              &lt;tr&gt;
                  &lt;td&gt;&amp;nbsp;&lt;/td&gt;             
                  &lt;td class="form"&gt;Password&lt;/td&gt;
                  &lt;td class="form"&gt;
                      &lt;input type="password" tabindex="0" name="password" size="22" autocomplete="off" onKeyPress="checkCapsLock( event )"/&gt;
                      &lt;!--&lt;span id="spanCaps" class="PopupBox" style="margin-left:10;vertical-align:bottom;"&gt;Caps Lock is &lt;b&gt;ON&lt;/b&gt;&lt;/span&gt;--&gt;
                  &lt;/td&gt;
                  &lt;td&gt;&amp;nbsp;&lt;/td&gt;                 
              &lt;/tr&gt;
  
              &lt;tr&gt;
                  &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                  &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                  &lt;td class="form" &gt;
                      &lt;span id="spanCaps" class="PopupBox"&gt;Caps Lock is &lt;b&gt;ON&lt;/b&gt;&lt;/span&gt;
                      &lt;input type="submit" name="submit" tabindex="0" value="Login"&gt;
  </code></pre>
  
  <p>Please help me with this as I wonder why am I getting in <code>Internet explorer</code> particularly..</p>
  
  <p>Thanks,
  Vishwas</p>