PhantomJS

PhantomJS是一个'headless'的WebKit脚本,具有JavaScript API。 (PhantomJS is a headless WebKit scriptable with a JavaScript API.)

Github stars Tracking Chart

PhantomJS是一个'headless'的WebKit脚本,具有JavaScript API。 它支持各种Web标准:DOM处理,CSS选择器,JSON,Canvas和SVG。

用例
  • 'headless' web测试。 没有浏览器的闪电快速测试现在是可能的!
  • 页面自动化。 使用标准DOM API访问和操作网页,或者使用像jQuery这样的常用库。
  • 屏幕截图。 以编程方式捕获网页内容,包括CSS,SVG和Canvas。 构建服务器端Web图形应用程序,从屏幕截图服务到矢量图表光栅化器。
  • 网络监控。 自动执行性能分析,跟踪页面加载和导出为标准HAR格式。

特性

  • 多平台,主要操作系统可用:Windows,Mac OS X,Linux和其他Unices。
  • 快速和本地实现Web标准:DOM,CSS,JavaScript,Canvas和SVG。 没有模拟!
  • 纯粹无头(无X11)在Linux上,是连续集成系统的理想选择。 还运行在Amazon EC2,Heroku和Iron.io.
  • 易于安装:只需5分钟即可下载,解压缩,开始享受乐趣。

Overview

Name With Ownerariya/phantomjs
Primary LanguageC++
Program languageC (Language Count: 8)
Platform
License:BSD 3-Clause "New" or "Revised" License
Release Count23
Last Release Name2.1.1 (Posted on 2016-01-24 11:17:02)
First Release Name1.0.0 (Posted on )
Created At2010-12-27 08:18:58
Pushed At2022-11-26 19:43:12
Last Commit At2020-07-13 08:08:08
Stargazers Count29.4k
Watchers Count1.1k
Fork Count5.8k
Commits Count2k
Has Issues Enabled
Issues Count4745
Issue Open Count14
Pull Requests Count562
Pull Requests Open Count0
Pull Requests Close Count575
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

PhantomJS - Scriptable Headless WebKit

PhantomJS (phantomjs.org) is a headless WebKit scriptable with JavaScript. The latest stable release is version 2.1.

Important: PhantomJS development is suspended until further notice (see #15344 for more details).

Use Cases

  • Headless web testing. Lightning-fast testing without the browser is now possible!
  • Page automation. Access and manipulate web pages with the standard DOM API, or with usual libraries like jQuery.
  • Screen capture. Programmatically capture web contents, including CSS, SVG and Canvas. Build server-side web graphics apps, from a screenshot service to a vector chart rasterizer.
  • Network monitoring. Automate performance analysis, track page loading and export as standard HAR format.

Features

  • Multiplatform, available on major operating systems: Windows, Mac OS X, Linux, and other Unices.
  • Fast and native implementation of web standards: DOM, CSS, JavaScript, Canvas, and SVG. No emulation!
  • Pure headless (no X11) on Linux, ideal for continuous integration systems. Also runs on Amazon EC2, Heroku, and Iron.io.
  • Easy to install: Download, unpack, and start having fun in just 5 minutes.

Questions?

PhantomJS is free software/open source, and is distributed under the BSD license. It contains third-party code, see the included third-party.txt file for the license information on third-party code.

PhantomJS is created and maintained by @ariyahidayat, with the help of many contributors.

To the top