title: web.Whatsapp headlessly using phantomjs
body: <p>Using Phantomjs with to start web session on web.whatsapp.com, using chrome's user-agent as whatsapp not support phantomjs as user-agent</p>
  
  <p>Code as Follows :</p>
  
  <pre><code>var page = require('webpage').create();
      page.settings.userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36';
      page.viewportSize = {
        width: 1200,
        height: 800
      };
      page.open('https://web.whatsapp.com/', function() {
        page.render('home.png');
        phantom.exit();
      });
  </code></pre>
  
  <p>But the output is <strong>blank white screen with dot on center</strong></p>
  
  <p><a href="https://i.stack.imgur.com/5bqvx.png" rel="nofollow noreferrer">script output screenshot</a></p>
  
  <p>any bug in my code or is there any compatible issue ?</p>