title: Why won't my CasperJS code login to Quora?
body: <p>This is the code that I'm using to login to Quora:</p>
  
  <pre><code>var casper = require('casper').create({ 
      verbose: true, 
      logLevel: 'debug',
      pageSettings: {
           loadImages:  false,         // The WebPage instance used by Casper will
           loadPlugins: false,         // use these settings
           userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4'
      }
  });
  
  casper.start('http://www.quora.com', function()
      {
          this.echo("page loaded");
          this.test.assertExists('form.inline_login_form', 'form is found');
          this.fill('form.inline_login_form',{email:'XXXXX',password:'XXXXX'},true);
  
      }
  );
  
  
  casper.then(function(){
     this.echo("Page Title " + document.title);
  });
  
  casper.run();
  </code></pre>
  
  <p>This is the output that I see:</p>
  
  <pre><code>[info] [phantom] Starting...
  [info] [phantom] Running suite: 3 steps
  [debug] [phantom] opening url: http://www.quora.com/, HTTP GET
  [debug] [phantom] Navigation requested: url=http://www.quora.com/, type=Other, lock=true, isMainFrame=true
  [debug] [phantom] Navigation requested: url=https://www.quora.com/, type=Other, lock=true, isMainFrame=true
  [debug] [phantom] url changed to "https://www.quora.com/"
  [debug] [phantom] Successfully injected Casper client-side utilities
  [info] [phantom] Step 2/3 https://www.quora.com/ (HTTP 302)
  page loaded
  PASS form is found
  [info] [remote] attempting to fetch form element from selector: 'form.inline_login_form'
  [debug] [remote] Set "email" field value to XXXXXXX
  [debug] [remote] Set "password" field value to ********
  [info] [remote] submitting form to unknown, HTTP POST
  [info] [phantom] Step 2/3: done in 2517ms.
  [debug] [phantom] Navigation requested: url=about:blank, type=Other, lock=true, isMainFrame=false
  [debug] [phantom] Navigation requested: url=about:blank, type=Other, lock=true, isMainFrame=false
  [debug] [phantom] Navigation requested: url=https://www.quora.com/, type=FormSubmitted, lock=true, isMainFrame=true
  [debug] [phantom] Navigation requested: url=https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=25#channel=f2c1b2e7dc&amp;origin=https://www.quora.com&amp;channel_path=/?fb_xd_fragment#xd_sig=f3e9a78ef8&amp;, type=Other, lock=true, isMainFrame=false
  [debug] [phantom] Navigation requested: url=https://www.facebook.com/plugins/facepile.php?size=small&amp;max_rows=1&amp;width=400&amp;color_scheme=dark&amp;app_id=136609459636&amp;locale=en_US&amp;sdk=joey&amp;channel=https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=25#cb=f2850df0f8&amp;origin=https%3A%2F%2Fwww.quora.com%2Ff2c1b2e7dc&amp;domain=www.quora.com&amp;relation=parent.parent, type=Other, lock=true, isMainFrame=false
  [info] [remote] Unsafe JavaScript attempt to access frame with URL about:blank from frame with URL https://www.facebook.com/plugins/facepile.php?size=small&amp;max_rows=1&amp;width=400&amp;color_scheme=dark&amp;app_id=136609459636&amp;locale=en_US&amp;sdk=joey&amp;channel=https%3A%2F%2Fs-static.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D25%23cb%3Df2850df0f8%26origin%3Dhttps%253A%252F%252Fwww.quora.com%252Ff2c1b2e7dc%26domain%3Dwww.quora.com%26relation%3Dparent.parent. Domains, protocols and ports must match.
  
  [debug] [phantom] url changed to "https://www.quora.com/"
  [debug] [phantom] Successfully injected Casper client-side utilities
  [info] [phantom] Step 3/3 https://www.quora.com/ (HTTP 302)
  Page Title 
  [info] [phantom] Step 3/3: done in 5876ms.
  [info] [phantom] Done 3 steps in 5975ms
  </code></pre>
  
  <p>I'm expecting it to login and show me the title. Something like 'Home-Quora..'
  Why isn't that happening?</p>