title: webdriver sendKeys doesn't wait for page to load
body: <p>I have an issue with selenium webdriver and i would be very grateful if anyone can help me</p>
  
  <p>Environment:</p>
  
  <ul>
  <li>selenium-server-standalone-2.31.0.jar / selenium-server-standalone-2.35.0.jar</li>
  <li>IEDriverServer.exe (tried version 2.28 - 2.35)</li>
  </ul>
  
  <p>Sample code:</p>
  
  <pre><code>WebElement href = this.findElement(By.xpath("//A"));    
  href.sendKeys(Keys.ENTER);
  href.click();
  </code></pre>
  
  <p>Problem: A fix to any of this would help me</p>
  
  <ol>
  <li>href.sendKeys() successfully simulates user click, but does not wait for page to load</li>
  <li>href.click() fails to simulate user click, but successfully wait for page to load</li>
  <li>I have search for the source code of .click() method to try to manually create a waitForPageToLoad function, but i haven't been able to find it.</li>
  </ol>
  
  <p>I know i am not giving to much information because the application I am running the test against is internal, so I cant share a link for debugging. But any idea or previous experience with similar problems that could help me figure out what is going on would be appreciate it.</p>
  
  <p>Right now, I have to do both sendKeys and click to achieve the expected results.</p>