title: Selenium WebElement value empty after sending keys
body: <p>I'm running some simple form tests where values are added fields.</p>
  
  <p>After each value is added to a field:</p>
  
  <pre><code>input.SendKeys(value);
  </code></pre>
  
  <p>I want to check the value in the field is correct.  This may sound unusual but the field may have an ajax search attached and if the search doesn't pull back a match, the field will be empty.</p>
  
  <p>I've tried testing the text value of the WebElement after sending the keys but it always seems to be empty:</p>
  
  <pre><code>bool match = input.Text.Equals(value);
  // input.Text always seems to be an empty string
  </code></pre>
  
  <p>I'm using Selenium 2 with the WebDriver - is there another way to perform these checks? Is there a particular reason why the WebElement is empty even if the SendKeys successfully prints a value (actually in the browser) in to the WebElement (textbox)?</p>
  
  <p>Any help would be grateful.</p>