title: Casperjs: how can I submit a form that has action="#"
body: <p>I am trying to get my casper to login into a website, but it has this form:</p>
  
  <pre><code>&lt;form action="#" method="POST" name="logon" id="loginForm" onsubmit="DoLogin(); return false;"&gt;
  </code></pre>
  
  <p>I get this in my casper </p>
  
  <pre><code>[info] [remote] attempting to fetch form element from selector: 'div.mainLoginLe
  ftPanel form'
  [debug] [remote] Set "username" field value to foo
  [debug] [remote] Set "password" field value to ***
  [info] [remote] submitting form to #, HTTP POST
  [warning] [remote] unable to submit form
  </code></pre>
  
  <p>How can I trigger the "<code>DoLogin();</code>" or submit the form a different way?</p>