title: Selenium 2 WebDriver - Chrome - Getting the value from a text box that is set via JavaScript
body: <p>I am using Selenium 2 (latest release from Googlecode) and I have it firing up Chrome and going to a url.</p>
  
  <p>When the page has loaded some javascript executes to set the value of a textbox.</p>
  
  <p>I  tell it to find a textbox by id which it does but it doesn't have the value within it (if I hardcode a value it finds it).</p>
  
  <p>Looking at the PageSource e.g.  Console.WriteLine(driver.PageSource); shows the html and the textbox is empty.</p>
  
  <p>I've tried using :</p>
  
  <p>driver.FindElement(By.Id("txtBoxId") to get the element and that too doesn't fetch the value.</p>
  
  <p>I've also tried ChromeWebElement cwe = new ChromeWebElement(driver, "txtBoxId"); (which complains about Stale data).</p>
  
  <p>Any thoughts?</p>
  
  <p>John</p>