title: Selenium WebDriver: cannot find element with name
body: <p>I've written the sample like in documentation:</p>
  
  <pre><code>var driver = new InternetExplorerDriver();
  
  driver.Navigate().GoToUrl("http://google.com");
  
  var query = driver.FindElement(By.Name("q"));
  query.SendKeys("Cheese");
  
  Console.WriteLine("Title is: " + driver.Title);
  
  driver.Quit();
  </code></pre>
  
  <p>But I always get <code>Unable to find element with name == q</code> error.</p>
  
  <p>The IE9 is opened, google page is loaded, I can read <code>driver.Title</code>, but cannot find any element by name, by selector, or by id.</p>
  
  <p>Any thoughts?</p>
  
  <p><strong>UPD</strong>:</p>
  
  <p>Terrible thing is that this code works on my desktop (Windows 7, VS 2010 Express) and doesn't work in virtual machine (VmWare player, Windows 2008 R2 SP 1 trial, VS 2010 Ultimate trial) :-(</p>
  
  <p>And it doesn't work there for custom dummy <code>&lt;input name="q" /&gt;</code> page</p>
  
  <p><strong>UPD 2</strong>:</p>
  
  <p>The code works for Firefox driver, but doesn't for IE.</p>
  
  <p><strong>SOLUTION</strong>:</p>
  
  <p>Seems like the site should be in "Trusted" for Windows server installation. I'm not sure why, but adding <code>google.com</code> to trusted solved an issue</p>