example in Quick Start don't work fine

11 peržiūrų
Praleisti ir pereiti prie pirmo neskaityto pranešimo

asci.e...@gmail.com

neskaityta,
2016-11-02 11:03:482016-11-02
kam: phantomjs
 
the first example in Quick Start don't work fine:
 
var page = require('webpage').create();
page.open('http://example.com', function(status) {
  console.log("Status: " + status);
  if(status === "success") {
    page.render('example.png');
  }
  phantom.exit();
});

the result is a empty file, without the text into the site http://example.com.
thanks

asci.e...@gmail.com

neskaityta,
2016-11-03 03:38:332016-11-03
kam: phantomjs
I resolved:



the Centos 7 didn't have the fonts.
I hope help somebody.
Atsakyti visiems
Atsakyti autoriui
Persiųsti
0 naujų pranešimų