WebKit 的服务器端 API PhantomJS
- 授权协议: BSD
- 开发语言: C/C++
- 操作系统: 跨平台
- 软件首页: http://www.phantomjs.org/
- 软件文档: https://github.com/ariya/phantomjs/wiki
软件介绍
Phantom JS是一个服务器端的 JavaScript API 的 WebKit。其支持各种Web标准: DOM 处理, CSS 选择器, JSON, Canvas, 和 SVG
使用场景:
无需浏览器的 Web 测试
页面访问自动化
屏幕捕获
网络监控
屏幕捕获示例代码:
var page = require('webpage').create();
page.open('http://github.com/', function() {
page.render('github.png');
phantom.exit();
});PhantomJS 生态环境:
CasperJS enables easy navigation scripting and common high-level testing.
Poltergeist allows running Capybara tests headlessly.
Guard::Jasmine automatically tests Jasmine specs on Rails when files are modified.
GhostDriver complements Selenium tests with a PhantomJS WebDriver implementation.
PhantomRobot runs Robot Framework acceptance tests in the background via PhantomJS.
Mocha-PhantomJS run Mocha tests using PhantomJS.
其他一些相关项目
零基础学Minecraft编程
Martin O''Hanlon、David Whale / 中文Minecraft Wiki翻译团队 / 人民邮电出版社 / 2015-9-7 / 79
在你体验Minecraft冒险的同时,学习宝贵的编程技能! 如果你很喜欢玩Minecraft,却被游戏中的建造耗费大量时间而困扰,并且你想要对游戏添加一些改动,那么本书就是为你而设计的。在游戏中,你可以学习许多Python编程技能,在PC、Mac或树莓派上与游戏进行互动。这些冒险不仅局限在虚拟世界——你也将会学习如何将Minecraft与电子元件连接起来,这样你的Minecraft世界就能够......一起来看看 《零基础学Minecraft编程》 这本书的介绍吧!
