Software Alternatives & Reviews

Nightwatch.js VS Playwright

Compare Nightwatch.js VS Playwright and see what are their differences

Nightwatch.js logo Nightwatch.js

Write efficient and straightforward end-to-end tests in Node.js which run against a Selenium/WebDriver server.

Playwright logo Playwright

Playwright is automation software for Chromium, Firefox, Webkit using the Node.js library having a single API in place.
  • Nightwatch.js Landing page
    Landing page //
    2023-06-30
  • Playwright Landing page
    Landing page //
    2023-06-22

Nightwatch.js videos

De cero a héroe con Nightwatch.js - Rodrigo Godoy y Alejandra Silva

Playwright videos

Generate tests in VS Code

More videos:

  • Review - Playwright Brittany K. Allen wins 2021 Georgia Engel Comedy Playwriting Prize

Category Popularity

0-100% (relative to Nightwatch.js and Playwright)
Browser Testing
32 32%
68% 68
Development
0 0%
100% 100
Automated Testing
24 24%
76% 76
Developer Tools
40 40%
60% 60

User comments

Share your experience with using Nightwatch.js and Playwright. For example, how are they different and which one is better?
Log in or Post with

Reviews

These are some of the external sources and on-site user reviews we've used to compare Nightwatch.js and Playwright

Nightwatch.js Reviews

Top Selenium Alternatives
Nightwatch.js simplifies the setup and use of Selenium WebDriver, providing an abstraction layer that is easier to work with for JavaScript developers. While it offers the broad compatibility and standardization of Selenium WebDriver, it aims to improve the development experience with its simplified syntax and support for the Page Object pattern, making it a middle ground...
Source: bugbug.io

Playwright Reviews

Top Selenium Alternatives
Playwright offers a modern approach with auto-wait APIs and more native support for modern web features compared to Selenium's more manual and broad approach. While Selenium requires explicit waits and has a broader language support, Playwright focuses on simplifying cross-browser testing with its unified API and auto-wait features, which might reduce setup and test...
Source: bugbug.io
Top 5 Selenium Alternatives for Less Maintenance
Appium and Playwright closely resemble Selenium in terms of functionality but offer unique features and advantages. Both of these solutions require coding experience. Leapwork, a commercial vendor, uses Selenium under the hood to power their visual automation approach.
20 Best JavaScript Frameworks For 2023
Playwright, a Node.js library created by Microsoft, is considered one of the best JavaScript frameworks for testing. It automates Chromium, Firefox, and WebKit with a single API. Developers building JavaScript code can use these APIs to build new browser pages, go to URLs, and interact with page elements. Additionally, Playwright can automate Microsoft Edge since it is based...

Social recommendations and mentions

Based on our record, Playwright seems to be a lot more popular than Nightwatch.js. While we know about 231 links to Playwright, we've tracked only 13 mentions of Nightwatch.js. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Nightwatch.js mentions (13)

  • Automating Android TV app with Nightwatch
    Nightwatch which will prompt to create a boilerplate framework specifically for Mobile / TV apps. - Source: dev.to / 17 days ago
  • Learn Automated Testing At Home: A Beginner's Guide
    6.NightwatchJS: NightwatchJS is a Node.js-based end-to-end testing framework. Key Features: Simplifies writing test scripts using a simple syntax. Supports parallel test execution. Integrates with Selenium WebDriver for cross-browser testing. - Source: dev.to / about 1 month ago
  • CSS Selectors And XPath Locators In Selenium Test Automation Scripts
    I have shown you the examples of using selectors in the Google Chrome dev tools, but the idea is similar when you write your automation scripts. I will use the Nightwatch testing framework to write the following snippets which will navigate to some webpage, wait to ensure that an interactive element has appeared in the DOM, and finally click on it. If you want to learn using Javascript with Nightwatch framework... - Source: dev.to / almost 2 years ago
  • How To Perform Automation Testing With Cucumber And Nightwatch JS?
    Nightwatch.js is a popular open-source, Selenium JavaScript-based test automation framework for automating browser-based web applications and websites. It is written in Node.js runtime and uses the W3C WebDriver API (formerly Selenium WebDriver) for interacting with various browsers to perform commands and assertions on DOM elements. - Source: dev.to / about 2 years ago
  • Properly Configuring Nightwatch to Run Geckodriver
    I’ll get right to it: both the stock Nightwatch configuration file (as of at least Nightwatch v. 2.0.9) and the Nightwatch docs are inaccurate for using the geckodriver web driver (specifically, v. 0.30.0) to run tests. Here is what you need to do, isolated to the firefox environment portion of the test_settings object in a nightwatch.conf.js file:. - Source: dev.to / about 2 years ago
View more

Playwright mentions (231)

  • Typed E2E test IDs
    We start with a project that was bootstrapped with npx create-next-app. For the E2E test we use Playwright and set it up as described in the testing guide provided by Next.js. - Source: dev.to / 11 days ago
  • Playwright Scraping infinite loading & pagination
    Playwright is a powerful tool developed by Microsoft, it allows developers to write reliable end-to-end tests and perform browser automation tasks with ease. What sets Playwright apart is its ability to work seamlessly across multiple browsers (Chrome, Firefox, and WebKit), it provides a consistent and efficient way to interact with web pages, extract data, and automate repetitive tasks. Moreover, it supports... - Source: dev.to / 11 days ago
  • Sometimes things simply don't work
    The consensus I could gather is either use playwright or use a workaround to solve it in the puppeteer layer. The root cause of the bug is a websocket size limitation on the CDP protocol for chromium. - Source: dev.to / 19 days ago
  • The best testing strategies for frontends
    With the advent of tools like Puppeteer and now Playwright, end-to-end testing has become much easier and more reliable. For anyone who's used Selenium in the past, you know what I'm talking about. Puppeteer has opened the way in terms of E2E tooling, but Playwright has taken it to the next level and made it easier to await for certain selectors or conditions to be fulfilled (via locators), thus making tests... - Source: dev.to / 20 days ago
  • Playwright Web Scraping 2024 - Tutorial
    In this tutorial, our main focus will be on Playwright web scraping. So what is Playwright? It’s a handy framework created by Microsoft. It's known for making web interactions more streamlined and works reliably with all the latest browsers like WebKit, Chromium, and Firefox. You can also run tests in headless or headed mode and emulate native mobile environments like Google Chrome for Android and Mobile Safari. - Source: dev.to / 23 days ago
View more

What are some alternatives?

When comparing Nightwatch.js and Playwright, you can also consider the following products

Cypress.io - Slow, difficult and unreliable testing for anything that runs in a browser. Install Cypress in seconds and take the pain out of front-end testing.

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.

puppeteer - Puppeteer is a Node library which provides a high-level API to control headless Chrome or Chromium...

WebdriverIO - Webdriver module for Node.js. that makes it easier to write Selenium tests

BrowserCat - Easy, fast, and reliable browser automation and headless browser APIs. The web is messy, but your code shouldn't be.

BrowserStack - BrowserStack is a software testing platform for developers to comprehensively test websites and mobile applications for quality.