title: PhantomJS - Get screen captures from many URL
body: <p>I have this code in capture.js file :</p>
  
  <pre><code>var page = require('webpage').create();
  var ii = 1;
  page.open('http://stackoverflow.com/', function() {page.render('capture_' + ii + '.png');}); ii++;
  page.open('http://github.com/',        function() {page.render('capture_' + ii + '.png');}); ii++;
  page.open('http://google.com/',        function() {page.render('capture_' + ii + '.png');}); ii++;
  phantom.exit();
  </code></pre>
  
  <p>That code produces nothing. </p>
  
  <p>How do I have to write the js file to get the screen capture from a list of URL?</p>