Nightwatchjsย vsย PhantomJS

Get Advice Icon

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

Nightwatchjs
Nightwatchjs

57
59
+ 1
0
PhantomJS
PhantomJS

329
235
+ 1
17
Add tool

Nightwatchjs vs PhantomJS: What are the differences?

Developers describe Nightwatchjs as "Automated testing and continous integration framework based on node.js and selenium webdriver". Nightwatch.js is an easy to use Node.js based End-to-End (E2E) testing solution for browser based apps and websites. It uses the powerful Selenium WebDriver API to perform commands and assertions on DOM elements. On the other hand, PhantomJS is detailed 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.

Nightwatchjs can be classified as a tool in the "Browser Testing" category, while PhantomJS is grouped under "Headless Browsers".

Some of the features offered by Nightwatchjs are:

  • e2e
  • test
  • javascript

On the other hand, PhantomJS provides the following key 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.

Nightwatchjs and PhantomJS are both open source tools. It seems that PhantomJS with 26.9K GitHub stars and 5.7K forks on GitHub has more adoption than Nightwatchjs with 9.43K GitHub stars and 927 GitHub forks.

According to the StackShare community, PhantomJS has a broader approval, being mentioned in 77 company stacks & 47 developers stacks; compared to Nightwatchjs, which is listed in 16 company stacks and 5 developer stacks.

What is Nightwatchjs?

Nightwatch.js is an easy to use Node.js based End-to-End (E2E) testing solution for browser based apps and websites. It uses the powerful Selenium WebDriver API to perform commands and assertions on DOM elements.

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.
Get Advice Icon

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

Why do developers choose Nightwatchjs?
Why do developers choose PhantomJS?
    Be the first to leave a pro
      Be the first to leave a con
        Be the first to leave a con
        Jobs that mention Nightwatchjs and PhantomJS as a desired skillset
        OneSignalOneSignal
        San Mateo, California
        What companies use Nightwatchjs?
        What companies use PhantomJS?

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

        What tools integrate with Nightwatchjs?
        What tools integrate with PhantomJS?

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

        What are some alternatives to Nightwatchjs and PhantomJS?
        WebdriverIO
        WebdriverIO lets you control a browser or a mobile application with just a few lines of code. Your test code will look simple, concise and easy to read.
        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.
        Cypress
        Cypress is a front end automated testing application created for the modern web. Cypress is built on a new architecture and runs in the same run-loop as the application being tested. As a result Cypress provides better, faster, and more reliable testing for anything that runs in a browser. Cypress works on any front-end framework or website.
        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.
        BrowserStack
        Live, Web-Based Browser Testing Instant access to all real mobile and desktop browsers. Say goodbye to your lab of devices and virtual machines.
        See all alternatives
        Decisions about Nightwatchjs and PhantomJS
        Tim Abbott
        Tim Abbott
        Founder at Zulip ยท | 3 upvotes ยท 13.5K views
        atZulipZulip
        Node.js
        Node.js
        PhantomJS
        PhantomJS
        CasperJS
        CasperJS

        We use CasperJS because we adopted it back in 2013 for JavaScript frontend testing. It was a really nice system back then compared to what else was out there; you had PhantomJS as a programmable browser that actually rendered CSS and everything, it was really fast (speed is a big downside of e.g. Selenium), and it was possible to make non-flaky frontend integration tests with it.

        I wouldn't recommend it today, because PhantomJS is a basically dead project, and as a result, so is CasperJS. I expect we'll migrate to something else. We haven't in large part because 95% of our new tests are written with a simple Node.js-based unit testing framework we use that run 35K lines of unit tests covering most of our JS codebase in 3.6 seconds. And for the things where we want an integration test, CasperJS does work, and I think there's a good chance that waiting another year or two will result in our being able to switch to a much better option than what we'd get if we migrated now.

        See more
        Benjamin Poon
        Benjamin Poon
        QA Manager - Engineering at HBC Digital ยท | 7 upvotes ยท 49.4K views
        PostgreSQL
        PostgreSQL
        React
        React
        ExpressJS
        ExpressJS
        Docker
        Docker
        GoCD
        GoCD
        GitHub
        GitHub
        Cucumber
        Cucumber
        JavaScript
        JavaScript
        Selenium
        Selenium
        Nightwatchjs
        Nightwatchjs

        For our digital QA organization to support a complex hybrid monolith/microservice architecture, our team took on the lofty goal of building out a commonized UI test automation framework. One of the primary requisites included a technical minimalist threshold such that an engineer or analyst with fundamental knowledge of JavaScript could automate their tests with greater ease. Just to list a few: - Nightwatchjs - Selenium - Cucumber - GitHub - Go.CD - Docker - ExpressJS - React - PostgreSQL

        With this structure, we're able to combine the automation efforts of each team member into a centralized repository while also providing new relevant metrics to business owners.

        See more
        Interest over time
        Reviews of Nightwatchjs and PhantomJS
        No reviews found
        How developers use Nightwatchjs and PhantomJS
        Avatar of fadingdust
        fadingdust uses PhantomJSPhantomJS

        We run PhantomJS as part of the CircleCI testing, comparing against other branches to ensure changes are limited to their intended scope.

        Avatar of Nough You
        Nough You uses PhantomJSPhantomJS

        Headless browsing, headless chrome is good too, this is not supported anymore.

        Avatar of ByeongGi
        ByeongGi uses PhantomJSPhantomJS
        • ์›น ํฌ๋กค๋ง(์Šคํ”„๋žฉํ•‘) ๊ณต๋ถ€๋ฅผ ์œ„ํ•ด์„œ ๊ฐ€์ƒ ๋ธŒ๋ผ์šฐ์ ธ์—์„œ ์ œ์ด์ฟผ๋ฆฌ๋ฅผ ๋กœ๋”ฉํ•˜์—ฌ ํŽ˜์ด์Šค๋ถ์—์„œ ๋ฌดํ•œ ์Šคํฌ๋กค์‹œ์— ๋ฐœ์ƒ ํ•˜๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ง‘ํž˜
        Avatar of Veggie Sailor
        Veggie Sailor uses PhantomJSPhantomJS

        Functional tests / screenshots generation.

        Avatar of Alexpts Pts
        Alexpts Pts uses PhantomJSPhantomJS
        How much does Nightwatchjs cost?
        How much does PhantomJS cost?
        Pricing unavailable
        Pricing unavailable
        News about Nightwatchjs
        More news