Playwright: Automate Chromium, WebKit and Firefox

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • Playwright

    Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

  • It's built by the founders of Puppeteer which came out of the Chrome team. Some things I like about it:

    1. It's reliable and implements auto-waiting as described in the article. You can use modern async/await syntax and it ensures elements are a) attached to the DOM, visible, stable (not animating), can receive events, and are enabled: https://playwright.dev/docs/actionability

    2. It's fast — It creates multiple processes and runs tests in parallel, unlike e.g. Cypress.

    3. It's cross-browser — supports Chrome, Safari, and Firefox out-of-the-box.

  • puppeteer

    Node.js API for Chrome

  • Puppeteer has experimental Firefox support.

    https://pptr.dev/#faq:~:text=What%20is%20the%20status%20of%2...

  • 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 logo
  • spectron

    DEPRECATED: 🔎 Test Electron apps using ChromeDriver

  • Electron appear to have dropped support for their previous automated testing framework - https://github.com/electron-userland/spectron - and now suggest Playwright as an alternative: https://www.electronjs.org/docs/latest/tutorial/automated-te...

  • running-playwright-on-aws-lambda

    Running hundreds of Playwright E2E tests in a few seconds with AWS Lambda

  • mPDF

    PHP library generating PDF files from UTF-8 encoded HTML

  • For PHP-based applications I've used mPDF[0], which generates PDFs from HTML without using a browser. I'm sure it can't handle all the CSS bells/whistles that a "modern" website uses, but it's worked well for me.

    [0]: https://github.com/mpdf/mpdf

  • taiko

    A node.js library for testing modern web applications

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts