title: Selenium InternetExplorerDriver Does Not Wait Till Page Loads
body: <p>I faced problem with InternetExplorer WebDriver that drives me crazy.</p>
  
  <p>IE for some reason doesn't wait till page is loaded and continue execute code.</p>
  
  <p>The following code opens Google page and doesn't open Wikipedia page just after:</p>
  
  <pre><code>var driver = new InternetExplorerDriver();
  
  driver.Navigate().GoToUrl("http://google.com");
  driver.Navigate().GoToUrl("http://wikipedia.org");
  </code></pre>
  
  <p>There is an completely different behavior in FireFox. This code opens Google page and then opens Wikipedia page:</p>
  
  <pre><code>var driver = new FirefoxDriver();
  driver.Navigate().GoToUrl("http://google.com");
  driver.Navigate().GoToUrl("http://wikipedia.org");
  </code></pre>
  
  <p>How I can get IE behaves same as FireFox?</p>
  
  <p>IE Version - 11.0.9600.17107; Selenium.WebDriver Version - 2.42 (NuGet installation); 
  Selenium.WebDriver.IEDriver Version - 2.24 (NuGet installation)</p>
  
  <p>Here is code that I used to test with Explicit Waits. As result of this test I get "OpenQA.Selenium.WebDriverTimeoutException: Timed out after 30 seconds ---> OpenQA.Selenium.NoSuchWindowException: Unable to find element on closed window":</p>
  
  <pre><code>[TestMethod]
  public void Open()
  {
      var driver = new InternetExplorerDriver();
  
      driver.Navigate().GoToUrl("http://google.com");
      driver.Navigate().GoToUrl("http://wikipedia.org");
  
      var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(30));
      var myElement = wait.Until(d =&gt; d.FindElement(By.CssSelector("input#www-wikipedia-org")));
      Assert.IsNotNull(myElement);
  }
  </code></pre>
  
  <p>Just checked suggestion with setting page load timeout. Didn't help. Behavior is the same.</p>
  
  <p>Best regards, </p>
  
  <p>Dmitry</p>