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.
其他一些相关项目
大数据架构商业之路
黄申 / 机械工业出版社 / 2016-5-1 / 69.00元
目前大数据技术已经日趋成熟,但是业界发现与大数据相关的产品设计和研发仍然非常困难,技术、产品和商业的结合度还远远不够。这主要是因为大数据涉及范围广、技术含量高、更新换代快,门槛也比其他大多数IT行业更高。人们要么使用昂贵的商业解决方案,要么花费巨大的精力摸索。本书通过一个虚拟的互联网O2O创业故事,来逐步展开介绍创业各个阶段可能遇到的大数据课题、业务需求,以及相对应的技术方案,甚至是实践解析;让读......一起来看看 《大数据架构商业之路》 这本书的介绍吧!
图片转BASE64编码
在线图片转Base64编码工具
html转js在线工具
html转js在线工具