title: Is Selenium Web Driver (Firefox) able to read AngularJS ng-model injected initial values?
body: <p>I have a text input field that is bound to a javascript object using ng-model.  The javascript object provides an initial value for the field. </p>
  
  <pre><code>&lt;input class="class1 class2" type="text" ng-model="scopeVar"&gt;&lt;/input&gt;
  </code></pre>
  
  <p>scopeVar is a text value.</p>
  
  <p>When the page loads, Selenium (using the firefox driver) can find the input field, verify that it is visible, can enter text into the field and then read that text back, but it can not read the text that was initially in the field.</p>
  
  <p>If I execute $('.class1.class2').val() in the firefox browser window it returns the expected default value.</p>
  
  <p>If I execute ((JavascriptExecutor) driver).executeScript("$('.class1.class2').val()") it returns null.
  If I execute driver.driver.findElement(By.cssSelector(".class1.class2")).getText() it returns null.</p>
  
  <p>So it looks like Angular is correctly populating the DOM (as far a jQuery is concerned) but Selenium Web Driver can't read it.</p>
  
  <p>Note: I do verify that I have an element and that it is visible before I try to read it.</p>
  
  <p>Any assistance is appreciated.</p>