devtools VS Playwright

Compare devtools vs Playwright and see what are their differences.

Playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API. (by microsoft)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
devtools Playwright
45 382
651 61,953
0.5% 1.7%
9.8 9.9
4 days ago about 21 hours ago
TypeScript TypeScript
GNU General Public License v3.0 or later Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

devtools

Posts with mentions or reviews of devtools. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-05.
  • A (Mostly) Complete Guide to React Rendering Behavior
    3 projects | news.ycombinator.com | 5 May 2024
    Not at this time. I'm pretty full up at this point with day job ( https://replay.io ), conferences, and personal life stuff.

    My current ongoing Redux maintenance task is trying to revamp our "Redux Essentials" tutorial to be TS-first. Making slower progress on that than I'd wanted, but hopefully can get that wrapped up in the not _too_ distant future.

    Beyond that, we've got a ton of open RTK Query feature requests that I'd like to address later on this year.

  • Is Something Bugging You?
    10 projects | news.ycombinator.com | 13 Feb 2024
    Exactly - that's what we've already built for web development at https://replay.io :)

    I did a "Learn with Jason" show discussion that covered the concepts of Replay, how to use it, and how it works:

    - https://www.learnwithjason.dev/travel-through-time-to-debug-...

    Not only is the debugger itself time-traveling, but those time-travel capabilities are exposed by our backend API:

    - https://static.replay.io/protocol/

    Our entire debugging frontend is built on that API. We've also started to build new advanced features that leverage that API in unique ways, like our React and Redux DevTools integration and "Jump to Code" feature:

    - https://blog.replay.io/how-we-rebuilt-react-devtools-with-re...

    - https://blog.isquaredsoftware.com/2023/10/presentations-reac...

    - https://github.com/Replayio/Protocol-Examples

  • Weird Debugging Tricks the Browser Doesn't Want You to Know
    4 projects | news.ycombinator.com | 10 Nov 2023
    Replay's founders originally worked as engineers on the Firefox DevTools (and in fact our debugger client UI started as a fork of the FF Devtools codebase, although at this point we've rewritten basically every single feature over the last year and a half). So, the original Replay implementation started as a feature built into Firefox, and thus the current Replay recording browser you'd download has been our fork of Firefox with all the recording capabilities built in.

    But, Chromium is the dominant browser today. It's what consumers use, it's devs use for daily development, and it's what testing tools like Cypress and Playwright default to running your tests in. So, we're in the process of getting our Chromium fork up to parity with Firefox.

    Currently, our Chromium for Linux fork is fully stable in terms of actual recording capability, and we use it extensively for recording E2E tests for ourselves and for customers. (in fact, if you want to, all the E2E recordings for our own PRs are public - you could pop open any of the recordings from this PR I merged yesterday [0] and debug how the tests ran in CI.)

    But, our Chromium fork does not yet have the UI in place to let a user manually log in and hit "Record" themselves, the way the Firefox fork does. It actually automatically records each tab you open, saves the recordings locally, and then you use our CLI tool to upload them to your account. We're actually working on this "Record" button _right now_ and hope to have that available in the next few weeks.

    Meanwhile, our Chrome for Mac and Windows forks are in early alpha, and the runtime team is focusing on stability and performance.

    Our goal is to get the manual recording capabilities in place ASAP so we can switch over and make Chromium the default browser you'd download to make recordings as an individual developer. It's already the default for configuring E2E test setups to record replays, since the interactive UI piece isn't necessary there.

    Also, many of the new time-travel-powered features that we're building rely on capabilities exposed by our Chromium fork, which the Firefox fork doesn't have. That includes the improved React DevTools support I've built over the last year, which relies on our time-travel backend API to extract React component tree data, and then does post-processing to enable nifty things like sourcemapping original component names even if you recorded a production app. I did a talk just a couple weeks ago at React Advanced about how I built that feature [1]. Meanwhile, my teammate Brian Vaughn, who was formerly on the React core team and built most of the current React DevTools browser extension UI, has just rebuilt our React DevTools UI components and started to integrate time-travel capabilities. He just got a working example of highlighting which props/hooks/state changed for a selected component, and we've got some other neat features like jumping between each time a component rendered coming soon. All that relies on data extracted from Chromium-based recordings.

    [0] https://github.com/replayio/devtools/pull/9885#issuecomment-...

    [1] https://blog.isquaredsoftware.com/2023/10/presentations-reac...

  • Evading JavaScript Anti-Debugging Techniques
    4 projects | news.ycombinator.com | 1 Aug 2023
  • Why does the `useSyncExternalStore`docs example call `getSnapshot` 6 times on store update?
    2 projects | /r/reactjs | 14 Jun 2023
    I made a Replay recording of the sandbox:
  • Replay.io: announcing our new Replay for Test Suites feature! Time-travel debug Cypress (and Playwright) tests in CI
    1 project | /r/reactjs | 14 Jun 2023
    Hiya folks! In addition to all my free time spent working on Redux, answering questions, and modding this sub, my day job is working on Replay.io. Today we're thrilled to announce our new Replay for Test Suites feature, which lets you record and time-travel debug Cypress (and Playwright) E2E tests as they ran in CI!
  • Firefox displayed a pop-up ad for Mozilla VPN over an unrelated page
    7 projects | news.ycombinator.com | 25 May 2023
    FWIW, the Firefox devs who were doing the WebReplay time travel debugging POC weren't, as far as I know, fired. Instead, they left and started Replay ( https://replay.io ), a true time-traveling debugger for JavaScript.

    I joined Replay as a senior front-end dev a year ago. It's real, it works, we're building it, and it's genuinely life-changing as a developer :)

    Not sure how well this would have fit into Firefox as a specific feature, given both the browser C++ runtime customizations and cloud wizardry needed to make this work. But kinda like Rust, it's a thing that spun out of Mozilla and has taken on a life of its own.

    Obligatory sales pitch while I'm writing this:

    The basic idea of Replay: Use our special browser to make a recording of your app, load the recording in our debugger, and you can pause at any point in the recording. In fact, you can add print statements to any line of code, and it will show you what it would have printed _every time that line of code ran_!

    From there, you can jump to any of those print statement hits, and do typical step debugging and inspection of variables. So, it's the best of both worlds - you can use print statements and step debugging, together, at any point in time in the recording.

    See https://replay.io/record-bugs for the getting started steps to use Replay, or drop by our Discord at https://replay.io/discord and ask questions.

  • What is not taught in React courses, but is commonly used in a real job and overlooked?
    6 projects | /r/reactjs | 30 Apr 2023
    I also recently did a Learn with Jason show episode based on this, where we went through many of the same topics, and also looked at the Replay.io time-traveling debugger that I build as my day job:
  • Dan Abramov responds to React critics
    5 projects | /r/reactjs | 25 Apr 2023
    My day job is working at a company called Replay ( https://replay.io ), and we're building a true "time traveling debugger" for JS. Our app is meant to help simplify debugging scenarios by making it easy to record, reproduce and investigate your code.
  • The 2023 guide to React debugging | Raygun Blog
    1 project | /r/reactjs | 23 Mar 2023
    I currently work for Replay.io, where we're building a true time-travel debugger for JS apps. If you haven't seen it, check it out - it makes debugging so much easier, and I've solved many bugs that would have been impossible otherwise

Playwright

Posts with mentions or reviews of Playwright. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-06.
  • Modern React testing, part 5: Playwright
    5 projects | dev.to | 6 May 2024
    Playwright, an end-to-end test runner;
  • Typed E2E test IDs
    2 projects | dev.to | 1 May 2024
    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.
  • Playwright Scraping infinite loading & pagination
    2 projects | dev.to | 1 May 2024
    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 various programming languages such as Node.js, Python, Java, and .NET, that’s making it a versatile choice for web scraping projects. Whether you're scraping public data for analysis, building a web crawler, or automating manual workflows, Playwright has you covered.
  • Sometimes things simply don't work
    3 projects | dev.to | 23 Apr 2024
    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.
  • The best testing strategies for frontends
    8 projects | dev.to | 22 Apr 2024
    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 more reliable and less flaky. Also, it's a game changer that it introduced a test-runner - this made the integration between the headless browser and the actual test code much smoother.
  • Playwright Web Scraping 2024 - Tutorial
    1 project | dev.to | 18 Apr 2024
    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.
  • The best testing setup for frontends, with Playwright and NextJS
    5 projects | dev.to | 18 Apr 2024
    // playwright.config.ts import { defineConfig } from "@playwright/test"; /** * See https://playwright.dev/docs/test-configuration. */ export default defineConfig({ testDir: "./src/pages", reporter: "list", use: { baseURL: "http://localhost:5432/", }, timeout: process.env.CI ? 10000 : 4000, // ... more options });
  • ✍️Testing in Storybook
    1 project | dev.to | 18 Apr 2024
    Issues with Playwright
  • Episode 24/14: Angular Query, New Template Syntax
    1 project | dev.to | 16 Apr 2024
    Fast and reliable end-to-end testing for modern web apps | Playwright
  • Adding standalone or "one off" scripts to your Playwright suite
    1 project | dev.to | 8 Apr 2024
    This means you cannot place test files outside of this directory, which was brought up as a question on Github some time ago. Initially, I thought it would be nice to add another folder in the repo called "scripts", but Playwright does not allow multiple testDir values.

What are some alternatives?

When comparing devtools and Playwright you can also consider the following projects:

legend-state - Legend-State is a super fast and powerful state library that enables fine-grained reactivity and easy automatic persistence

WebdriverIO - Next-gen browser and mobile automation test framework for Node.js

jotai - 👻 Primitive and flexible state management for React

undetected-chromedriver - Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)

redux-eggs - Add some Eggs to your Redux store.

TestCafe - A Node.js tool to automate end-to-end web testing.

rr - Record and Replay Framework

nightwatch - Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack

dark - Darklang main repo, including language, backend, and infra

Cypress - Fast, easy and reliable testing for anything that runs in a browser.

Protocol-Examples - Example apps demonstrating how to use the Replay Protocol API

playwright-python - Python version of the Playwright testing and automation library.