It’s very simple, take a look at the colorwheel.js example.
var page = require('webpage').create();
page.content="<html><body><p>Hello world</p></body></html>";
That’s all! Then you can manipulate the page, e.g. render it as an image.
It’s very simple, take a look at the colorwheel.js example.
var page = require('webpage').create();
page.content="<html><body><p>Hello world</p></body></html>";
That’s all! Then you can manipulate the page, e.g. render it as an image.