PHANTOMJS is a WebKit-based server-side JavaScript API

Source: Internet
Author: User
Tags fast web site hosted

PHANTOMJS is a WebKit-based server-side JavaScript API that is published based on the BSD open source protocol. PHANTOMJS supports the web without browser support, and natively supports a variety of web standards such as DOM processing, JavaScript, CSS selectors, JSON, canvas, and Scalable Vector graphics svg. Phantomjs is mainly through JavaScript and Coffeescript control the WebKit CSS selector, Scalable Vector graphics SVG and HTTP network and other modules. Phantomjs mainly supports Windows, Mac OS, Linux three platforms, and provides a corresponding binary installation package, readers can select the corresponding version of the download page to download the extract can be used. GitHub also provides source code for GitHub, Google code, BitBucket, and many other ways.

The usage scenarios for PHANTOMJS are as follows:

    • Web testing without a browser: Fast Web Testing without a browser, and support for many test frameworks such as Yui Test, Jasmine, Webdriver, Capybara, Qunit, mocha, etc.
    • Page Automation: Access and manipulate Web pages using the standard DOM API or some JavaScript frameworks, such as jquery.
    • Screen capture: Programmatically Grab page content such as CSS, SVG, and canvas for web crawler applications. Build server-side web graphics applications, such as services, vector raster applications.
    • Network monitoring: Automatic network performance monitoring, tracking page loading and the relevant monitoring information in the standard HAR format export.

PHANTOMJS has formed a very powerful ecosystem of content, related projects are as follows:

    • Casperjs: An open source navigation script processing and advanced testing tool
    • Poltergeist: Test drive for testing tool Capybara
    • Guard::jasmine: The ability to automate Test Jasmine based on rails specs
    • Ghostdriver: Open source implementation of remote Webdriver wired protocol
    • PHANTOMROBOT:PHANTOMJS Robot Testing Framework
    • Mocha-phantomjs:javascript Testing the Framework Mocha client

In addition, the ecosystem includes a number of screenshots based on PHANTOMJS, such as Capturejs, Pageres, Phantomjs-screenshots, Manet, Screenshot-app, etc., and node. js, Django, PHP, Sinatra and other languages of the API and confess, Ghoststory, Grover and many other tools.

Phantomjs Current version is 1.9, known as Cherry Blossom (Sakura). Interestingly, each release of Phantomjs is named after flowers, PHANTOMJS 1.8 is called the Blue Winter Rose (Winter Rose), Phantomjs 1.7 is called a vivid plant (blazing Star), PHANTOMJS 1.6 Called Lavender (Lavender), etc.

The next 2.0 version is a very important version, the development of this version has been completed, the development team is now preparing the binary version on each platform and the relevant documentation, I believe there will soon be released news. For more information about PHANTOMJS, please visit the website or the site hosted on GitHub, and interested readers can read and try the official Network monitoring, page automation and other relevant examples.

PHANTOMJS is a WebKit-based server-side JavaScript API

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.