casperjs

var casper = require('casper').create();
casper.start('http://blog.csdn.net/kiwi_coder?viewmode=list', function() {
	this.click('#btnContents a');
});
casper.then(function() {
    this.capture('baidu-homepage.png');
});

casper.run();

你可能感兴趣的:(js)