Software Alternatives & Reviews

jsdom VS Playwright

Compare jsdom VS Playwright and see what are their differences

jsdom logo jsdom

A JavaScript implementation of various web standards, for use with Node.js - jsdom/jsdom

Playwright logo Playwright

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

jsdom videos

JSDom & Enzyme: Different Test Styles for React Apps - Dan La Feir @ ReactNYC

More videos:

  • Review - Frontend Pairing - Discovering missing JSDOM APIs that didn’t allow to test Toast UI in jest

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 jsdom and Playwright)
Automated Testing
25 25%
75% 75
Development
16 16%
84% 84
Browser Testing
25 25%
75% 75
Testing
100 100%
0% 0

User comments

Share your experience with using jsdom 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 jsdom and Playwright

jsdom Reviews

We have no reviews of jsdom yet.
Be the first one to post

Playwright Reviews

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 should be more popular than jsdom. It has been mentiond 231 times since March 2021. 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.

jsdom mentions (28)

  • Migrating from Jest to Vitest for your React Application
    If you happen to be using React Testing Library in your project, you'll need to keep the jsdom dev dependency installed. - Source: dev.to / 5 months ago
  • Building a Serverless Reader View with Lambda and Chrome
    Readability.js requires a DOM object to parse the readable content from a website. That's why we create a DOM object with JSDOM and provide the HTML from the page and its current URL. By the way, the browser may have had to follow HTTP redirects, so the current URL doesn't necessarily have to be the one we provided initially. The parse function of the library returns the following result:. - Source: dev.to / 8 months ago
  • Portadom: A Unified Interface for DOM Manipulation
    Web scraping, while immensely useful, often requires developers to navigate a sea of tools and libraries, each with its own quirks and intricacies. Whether it's JSDOM, Cheerio, Playwright, or even just plain old vanilla JS in the DevTools console, moving between these platforms can be a challenge. - Source: dev.to / 8 months ago
  • PoC of ReactJS app inside Service Worker
    The code uses jSDom to render the app but I was wondering if it's possible to run the app without the UI to be able to use a library like that to generate the string from react element. Source: 10 months ago
  • React component testing with Vitest efficiently
    JSDOM as the DOM environment for running our tests. - Source: dev.to / 11 months 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 / 2 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 / 3 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 / 10 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 / 11 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 / 15 days ago
View more

What are some alternatives?

When comparing jsdom and Playwright, you can also consider the following products

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

html2canvas - JavaScript library to take "screenshots" of webpages or parts of it, directly on the...

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.

Html Screen Capture JS - Html Screen Capture JS is an open-source, lightweight, and fully customizable javascript/typescript library that captures a complete layout or a few areas of a layout and saves it in a mini HTML file for the user.

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.

DOM to Image - JavaScript library to generate an image from a DOM node using HTML5 canvas.