PhantomJSWebKit 的服务器端 API
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.
其他一些相关项目
评论
phpQueryPHP 的服务器端 jQuery
phpQuery是一个服务器端jQuery开源项目。它可以让PHP开发人员采用与jQuery相同的语法来处理网页元素。示例代码:<?phprequire('phpQuery/phpQuery.p
phpQueryPHP 的服务器端 jQuery
0
Node.js服务器端的 JavaScript 运行环境
Node.js是一个跨平台的JavaScript运行时环境。Node.js使用高效、轻量级的事件驱动、非阻塞I/O模型。Node.js的生态系统是目前最大的开源包管理系统。Node.js是一套用来编写
Node.js服务器端的 JavaScript 运行环境
0
wxpay-sdk微信服务器端的sdk
(又一个)微信服务器端的sdk,Java 语言绑定.基于Servlet 的微信API封装, 提供对 微信消息响应(wxmsg), 微信公众平台API(wxmp), 微信支付(wxpay) 的顶层支持和
wxpay-sdk微信服务器端的sdk
0
Hapi.jsNode.js 服务器端框架
Hapi.js是一个用来构建基于Node.js的应用和服务的富框架,使得开发者把重点放在便携可重用的应用逻辑而不是构建架构。内建输入验证、缓存、认证和其他Web应用开发常用的功能。示例代码:var H
Hapi.jsNode.js 服务器端框架
0
socketio-nettySocket.IO服务器端实现
这是一个Socket.IO服务器端实现,基于netty框架,适合于 socket.io 0.9-1.
socketio-nettySocket.IO服务器端实现
0