casperjs,phantomjs,slimerjs and spooky


CasperJS is a navigation scripting & testing utility for PhantomJS and SlimerJS written in Javascript

网站截图小例子:,提到中文显示问题.  有几篇关于casperjs使用的文章,不错的。



PhantomJS is a headless WebKit scriptable with a JavaScript API. It has fast andnative support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.



SlimerJS is useful to do functional tests, page automation, network monitoring, screen capture, etc.

SlimerJS is similar to PhantomJs, except that it runs on top of Gecko, the browser engine of Mozilla Firefox(specifically, version 31), instead of Webkit, and is not yet truly headless.



Drive CasperJS from Node.js.

Note: If you are simply looking to control Phantom from Node and don't need Casper's API, have a look at PhantomJS 1.8, which has native WebDriver support.


以上工具可以完成很多前端自动化的工作,截屏,抓取,测试等,跟selenium (配合可以完成自动化测试,暂时没深入研究过selenium

posted on 2015-01-02 18:34  argb  阅读(1218)  评论(0编辑  收藏  举报