PhantomJS介绍

 

http://phantomjs.org/

PhantomJS 是一个基于 WebKit 的服务器端 JavaScript API。它全面支持web而不需浏览器支持,其快速,原生支持各种Web标准: DOM 处理, CSS 选择器, JSON, Canvas, 和 SVG。 PhantomJS 可以用于 页面自动化 , 网络监测 , 网页截屏 ,以及 无界面测试 等。 

 

 

PhantomJS快速入门教程

http://www.tuicool.com/articles/beeMNj/

 

 

casperjs,phantomjs,slimerjs and spooky

1、casperjs http://casperjs.org/

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

网站截图小例子:http://type.so/linux/casperjs-capture-nice.html,提到中文显示问题.

http://fourword.fourkitchens.com/article/series/casperjs  有几篇关于casperjs使用的文章,不错的。

 

2、phantomjs http://phantomjs.org/

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.

 

3、slimerjs http://slimerjs.org/

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.

 

4、spookyjs https://github.com/WaterfallEngineering/SpookyJS

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 (http://docs.seleniumhq.org/download/)配合可以完成自动化测试,暂时没深入研究过selenium

转载于:https://my.oschina.net/huqiji/blog/800519

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值