title: Selenium IE WebDriver: NoSuchElementException
body: <p>I'm trying to get to work Selenium Internet Explorer WebDriver, but it keeps throwing an exception as soon as I try to find an element inside the loaded page.</p>
  
  <p>I'm using .NET implementation of Selenium client and version 2.44, Internet Explorer 11 (I've tried 32-bit and 64-bit versions) running on a Windows 8.1 x64 machine.</p>
  
  <p>This is the C# test code I'm using:</p>
  
  <pre><code>IWebDriver driver = new InternetExplorerDriver();
  
  driver.Navigate().GoToUrl("http://mytesturl.com");
  
  const string name = "Test";
  
  IWebElement nameElement = driver.FindElement(By.Name("name"));
  nameElement.SendKeys(name);
  //...
  </code></pre>
  
  <p>This is the Web page on which I'm running the test:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head runat="server"&gt;
      &lt;meta name="viewport" content="width=device-width" /&gt;
      &lt;title&gt;TestSelenium&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div&gt;
          &lt;form action="&lt;%: Url.Action("TestSeleniumFormResponse") %&gt;" method="post"&gt;
              Insert name: &lt;input name="name" type="text"/&gt;
              &lt;button type="submit"&gt;Submit&lt;/button&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The exception is raised as soon as it gets to the <code>driver.FindElement(By.Name("name"))</code> call. Until then, the execution works as expected (launches IE when the webdriver is instantiated and navigates to the URL correctly).</p>
  
  <p>This is the exception I'm getting:</p>
  
  <pre><code>OpenQA.Selenium.NoSuchElementException : Unable to find element with name == name
     en OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
     en OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
     en OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(String mechanism, String value)
     en OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByName(String name)
     en OpenQA.Selenium.By.&lt;&gt;c__DisplayClassa.&lt;Name&gt;b__8(ISearchContext context)
     en OpenQA.Selenium.By.FindElement(ISearchContext context)
     en OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(By by)
  </code></pre>
  
  <p>I've got all security zones in IE set to have the same protected mode settings (tried with all enabled and all disabled), enhanced protection mode disabled, and have set the registry entries as specified in the required configuration section of the official website (<a href="https://code.google.com/p/selenium/wiki/InternetExplorerDriver" rel="nofollow">https://code.google.com/p/selenium/wiki/InternetExplorerDriver</a>). I've tried to explicitly wait up to 60 seconds, in case the webpage wasn't loaded by the time the execution reaches that point. No luck.</p>
  
  <p>Thanks for your help.</p>