title: Testing AngularJS with Phantomjs
body: <p>I am trying to test the AngularJS tutorial (<a href="http://angular.github.io/angular-phonecat/step-7/app" rel="nofollow">http://angular.github.io/angular-phonecat/step-7/app</a>) with PhantomJS. I cannot get typing in a search to actually run.</p>
  
  <p>Here is what I am at so far:</p>
  
  <pre><code>var page = new WebPage();
  page.open('http://angular.github.io/angular-phonecat/step-7/app', function() {
    page.includeJs("http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js", function() {
      page.evaluate(function() {
          $("[ng-model=query]").click();
          $("[ng-model=query]").focus();
          $("[ng-model=query]").val("xoom");
          console.log($('ul.phones').text());
      });
      phantom.exit()
    });
  });
  </code></pre>