PhatomJS是一个服务器端的JavaScriptAPI的WebKit。其支持各种Web标准:DOM处理,CSS选择器,JSON,Cavas,和SVG
使用场景:
无需浏览器的Web测试
页面访问自动化
屏幕捕获
网络监控
屏幕捕获示例代码:
var page = require('webpage').create();page.ope('https://github.com/', fuctio() { page.reder('github.pg'); phatom.exit();});PhatomJS生态环境:
CasperJSeableseasyavigatioscriptigadcommohigh-leveltestig.
PoltergeistallowsruigCapybaratestsheadlessly.
Guard::JasmieautomaticallytestsJasmiespecsoRailswhefilesaremodified.
GhostDrivercomplemetsSeleiumtestswithaPhatomJSWebDriverimplemetatio.
PhatomRobotrusRobotFrameworkacceptacetestsithebackgroudviaPhatomJS.
Mocha-PhatomJSruMochatestsusigPhatomJS.
其他一些相关项目











评论