PhantomJS vs Puppeteer

Need advice about which tool to choose?Ask the StackShare community!

PhantomJS

450
351
+ 1
17
Puppeteer

289
387
+ 1
16
Add tool

PhantomJS vs Puppeteer: What are the differences?

Developers describe PhantomJS as "Scriptable Headless WebKit". PhantomJS (www.phantomjs.org) is a headless WebKit scriptable with JavaScript. It is used by hundreds of developers and dozens of organizations for web-related development workflow. On the other hand, Puppeteer is detailed as "Headless Chrome Node API". Puppeteer is a Node library which provides a high-level API to control headless Chrome over the DevTools Protocol. It can also be configured to use full (non-headless) Chrome.

PhantomJS and Puppeteer can be categorized as "Headless Browsers" tools.

PhantomJS and Puppeteer are both open source tools. Puppeteer with 51.1K GitHub stars and 4.71K forks on GitHub appears to be more popular than PhantomJS with 26.9K GitHub stars and 5.7K GitHub forks.

Key Location, Tailor Brands, and NationBuilder are some of the popular companies that use PhantomJS, whereas Puppeteer is used by Huddle, Better, and Orangesys Inc.. PhantomJS has a broader approval, being mentioned in 77 company stacks & 47 developers stacks; compared to Puppeteer, which is listed in 25 company stacks and 18 developer stacks.

Pros of PhantomJS
Pros of Puppeteer
  • 13
    Scriptable web browser
  • 2
    No ECMAScript 6
  • 2
    Depends on QT
  • 7
    Very well documented
  • 6
    Scriptable web browser
  • 3
    Promise based

Sign up to add or upvote prosMake informed product decisions

Cons of PhantomJS
Cons of Puppeteer
    Be the first to leave a con
    • 5
      Chrome only

    Sign up to add or upvote consMake informed product decisions

    What is PhantomJS?

    PhantomJS (www.phantomjs.org) is a headless WebKit scriptable with JavaScript. It is used by hundreds of developers and dozens of organizations for web-related development workflow.

    What is Puppeteer?

    Puppeteer is a Node library which provides a high-level API to control headless Chrome over the DevTools Protocol. It can also be configured to use full (non-headless) Chrome.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use PhantomJS?
    What companies use Puppeteer?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with PhantomJS?
    What tools integrate with Puppeteer?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    What are some alternatives to PhantomJS and Puppeteer?
    Selenium
    Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
    Electron
    With Electron, creating a desktop application for your company or idea is easy. Initially developed for GitHub's Atom editor, Electron has since been used to create applications by companies like Microsoft, Facebook, Slack, and Docker. The Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS. It is based on io.js and Chromium and is used in the Atom editor.
    Protractor
    Protractor is an end-to-end test framework for Angular and AngularJS applications. Protractor runs tests against your application running in a real browser, interacting with it as a user would.
    wkhtmltopdf
    wkhtmltopdf and wkhtmltoimage are command line tools to render HTML into PDF and various image formats using the QT Webkit rendering engine. These run entirely "headless" and do not require a display or display service.
    SlimerJS
    It allows you to manipulate a web page with an external Javascript script: opening a webpage, clicking on links, modifying the content... It is useful to do functional tests, page automation, network monitoring, screen capture etc.
    See all alternatives
    Interest over time
    News about Puppeteer
    More news