title: Click in Angularjs using Casperjs
body: <p>I would like to click in angularjs using casperjs. However, i cant achieve this. The webpage populates a dialogbox everytime i run so this is why i need to click.</p>
  
  <p><strong>This is what i try to click</strong></p>
  
  <pre><code>&lt;button class="ng-scope" trans="" ng-click="closeDialog(activeDialog, 'okButton');$event.stopPropagation();" ng-if="!activeDialog.yesno"&gt;Tamam&lt;/button&gt;
  </code></pre>
  
  <p><strong>This is what i use in casperjs</strong></p>
  
  <pre><code>casper.then(function () {
  this.evaluate(function() {  
  
      $($(document).find('button[ng-if="!activeDialog.yesno"]')).click();
  });
  
  this.wait(3000);
  </code></pre>
  
  <p>Thanks in advance</p>