title: Selenium 2 WebDriver does not evaluate updated DOM as expected
body: <p>I am using Selenium 2 WebDriver in C# to automate an input page.  There is a validation summary control that is hidden when the DOM is loaded.  Here's how it looks on additional load.</p>
  
  <pre><code>&lt;div id='validation_summary' style='display: none'&gt;
    &lt;div id='validation_message'/&gt;
  </code></pre>
  
  <p>When my pageObject is initialized in Selenium, the Displayed property of the WebElement is set to 'false'.  This I would expect.</p>
  
  <p>After clicking a submit button, the dom is changed to:</p>
  
  <pre><code>&lt;div id='validation_summary' style='display: block'&gt;
    &lt;div id='validation_message'&gt;
       &lt;div&gt;&lt;a&gt;Fix Me&lt;/a&gt;&lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>When I try to access the WebElement in the following manner, after the click to validate is issued, the Displayed property is still 'false' and the appended div is not visible:</p>
  
  <pre><code>var validation = new WebDriverWait(_driver, TimeSpan.FromSeconds(10)).Until&lt;IWebElement&gt;((d)=&gt;d.FindElement(By.Id('validation_message'));
  </code></pre>
  
  <p>Should this actually work?  Should I expect Selenium to be savvy enough to evaulate the DOM in its current state?  How does it actually evaluate the Displayed property of an element?   If I look at the PageSource property, I do see the text is present.  I am not seeing why I don't see my changes reflected by Selenium.  </p>