axe-core VS Playwright

Compare axe-core vs Playwright and see what are their differences.

axe-core

Accessibility engine for automated Web UI testing (by dequelabs)

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
axe-core Playwright
75 381
5,649 61,799
1.0% 1.5%
9.1 9.9
6 days ago 3 days ago
JavaScript TypeScript
Mozilla Public License 2.0 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.

axe-core

Posts with mentions or reviews of axe-core. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-15.
  • ADA Compliance Made Easy: ADA Testing for Websites and Applications
    1 project | dev.to | 22 Apr 2024
    The reports often rank the issues by severity level and provide actionable solutions. Using these reports, developers can prioritize accessibility fixes and improve their products' accessibility. Popular examples of automated testing tools include Axe, WAVE, and SiteImprove. Also, most modern browsers offer built-in accessibility audits within their developer tools.
  • How to Write Accessible Technical Documentation – Best Practices with Examples
    2 projects | dev.to | 15 Apr 2024
    ‌Videos To caption videos, HTML is a great option. But if you are using markdown, you can embed videos from YouTube and Vimeo using the tag. These apps offer in-built caption support so you can enable captions before adding the embed code.

    You could also install third-party plugins for this purpose.

    Here’s another tip: avoid flashing content in your videos as it could lead to seizure triggers. If your video has flashing bright colours, ensure that it does not exceed two times within a second.

    Add transcripts to audios and videos

    It’s a good idea to add transcripts to your audio and video content. Not everyone will want to watch or listen to the content. But they may be curious to know what it is about.

    By adding a transcript, you make it easier for anyone to navigate through the content and get the information that they need.

    Transcript for audio
    For audio content, you can insert transcripts using HTML.

    Here’s an example:

     controls muted> 
       src="ringtone.mp3" type="audio/mpeg"> 
     
    
     
      

    Here is a transcription of the text

    00:03 = I am going to be productive today

    00:05 = I am going to be productive today

    00:08 = I am going to be productive today

    00:10 = I need to be productive today

    00:11 = I have to be productive today

    00:13 = I should be productive today

    00:16 = I am going to be productive today

    00:18 = I ought to be productive today

    00:21 = I have to be productive today

    00:23 = Productivity matters to me

    Enter fullscreen mode Exit fullscreen mode

    For markdown documentation sites like Docusaurus, you can create a custom component.‌

    • In your src/components folder, create a file named transcript.jsx.

    • Insert this code:

    import React, { useState } from 'react'; 
    export default function Transcript({ }) { 
      const [showTranscript, setShowTranscript] = useState(false); 
      const toggleTranscript = () => { 
        setShowTranscript(!showTranscript); 
      }; 
      return ( 
        <div> <a href="#" onClick={toggleTranscript}> { 
        showTranscript ? 'Hide transcript' : 'View transcript'
        } 
        </a> {showTranscript && ( 
    (insert your transcript text here) div> )} </div> ); }
    Enter fullscreen mode Exit fullscreen mode
    • Go to your markdown file and import it.
    import Transcript from '@site/src/components/transcript'; 
    
    
    
    Enter fullscreen mode Exit fullscreen mode

    A screenshot of the audio transcript output in a documentation site

    Note: I added some tweaks to the code to make transcript display optional. You can edit it if you want the transcript to show as the page loads.

    Transcript for video
    Now for videos, YouTube is a great option. It provides inbuilt transcripts for your videos. So, you can always embed YouTube videos in your docs.

    The transcript is in the video description after the main details. The transcript will display with the timestamps when you click the “Show Transcript” button.

    Add code snippets and use the colour contrast technique

    How to add code snippets
    Use code blocks within the text to explain code instead of images. You could also use code snippets to showcase the output of your code. Unless it is necessary to add an image, you should use code snippets.

    For instance,

    index.html

     
       
        
         
        A calculator app 
         
        
        
        
      
    
    Enter fullscreen mode Exit fullscreen mode

    This will allow screen readers to read through the code, which they are not able to do with screenshots.

    A screenshot of the above code

    Colour contrast technique
    The colour contrast technique implies using colours that are opposite or heavily contrasting.

    For example, using black text on a white background has a high contrast, as opposed to using light brown text on a brown background.

    When combining colours, you could use an accessible colour palette like Color Safe.‌

    Using a pale white colour on a green background gotten from Color Safe

    Add translation options

    There are documentation sites that provide translation options where you can build your docs in multiple languages, websites like Jekyll. This is an example.

    Docusaurus is also another doc site that provides multilingual options using Crowdin or Git.

    • Follow through this guide to set up translation and localization on Docusaurus using Git.

    • Follow through this guide to set up translation and localization on Docusaurus using Crowdin.‌

    Use accessibility testing tools

    There are tools you can use to check for errors in accessibility in your docs. Some examples are WAVE (Web Accessibility Evaluation Tool) and AXE (Accessibility Engine).

    Also, you can get the NVDA(NonVisual Desktop Access) screen reader to test out your content. This software will let you know how the content of your documentation will be perceived by a user using a screen reader.‌

    Set up an improvement or suggestion box

    Finally, it may not be possible to cover the needs of every user. So you could add a suggestion or improvement box, allowing users to send feedback about how you could further improve the content. Hearing firsthand from users can help you know how best to make the docs accessible for them.

    To add an improvement box, you could use an external form link that stores the users’ inputs or you could set up the suggestion box in the docs.

    How to add an external form link in Docusaurus

    You would need to create a custom component for that.

    • Go to src/components folder and create a file feedback.jsx.

    • Add this code:

    import React from 'react'; 
    
    export default function FeedbackButton({ href }) {
      return ( <a href={href} target="_blank" rel="noopener noreferrer" > Give Feedback </a> ); 
    }; 
    
    Enter fullscreen mode Exit fullscreen mode
    • In your markdown file import it:
    import FeedbackButton from '@site/src/components/feedbackbutton';
    
    Enter fullscreen mode Exit fullscreen mode
    • Insert the link
     
    
    Enter fullscreen mode Exit fullscreen mode

    When you run it on your docs, it should showcase a link to Google forms. Google Forms is an example, you could add the link to your company website or server.

    Here’s what it’ll look like:

    A feedback link for suggestion in a docs site

    Summary

    To follow and implement these accessibility best practices, you can consider creating or using an already made style guide. This can help you consistently implement these practices and make it easier for you and other technical writers on your team.

    There are style guides focused on accessibility for technical writers, such as the following:

    • Accessibility style guide by Heyawhite

    • Write accessible documentation by Google for developers

    • Writing for Accessibility by MailChimp content style guide

    That sums up my tips about web accessibility practices in writing. I’m a technical writer, and you can reach out to me on Instagram or hire me via Upwork. Thank you for reading.‌

  • Responsive design and cross-device testing
    1 project | dev.to | 27 Feb 2024
    To measure or rather estimate accessibility, we can use automated audits like WAVE, axe and the accessibility report in Lighthouse or PageSpeed Insights to ensure that we don't violate essential Web Content Accessibility Guidelines (WCAG)
  • Deque Systems Sues BrowserStack for Intellectual Property Theft
    1 project | news.ycombinator.com | 14 Feb 2024
    axe-core licensed via MPL 2.0: https://github.com/dequelabs/axe-core

    Here is the BrowserStack extension:

  • 🌟 #DEVImpact2023: A Year of Challenges, Triumphs, and The Future
    2 projects | dev.to | 28 Dec 2023
    [ ] Checked with axe DevTools and addressed Critical and Serious issues?
  • First time diving into Accessibility
    1 project | /r/ExperiencedDevs | 10 Nov 2023
    axe-core - To detect violations on page level.
  • Accessibility, SustyWeb, SDGs, and upcoming European Legislation in 2024/2025 🇪🇺⚖️
    2 projects | dev.to | 6 Nov 2023
    Like auditing WCAG compliance with accessibility tools like axe and WAVE, it has become much easier to measure and provide data about the ecological impact of web development, but there are still a lot of unknown figures.
  • React-ing to accessibility: Building accessible e-commerce forms that everyone can use
    4 projects | dev.to | 20 Jul 2023
    Axe is a set of tools created by Deque, to provide a solution for a testing library. To use Axe, one of the possible ways is to install Axe DevTools, which is a browser extension that provides you with a way to test your applications for accessibility issues. To start testing for accessibility using Axe DevTools, you just open the browser's Developer Tools, navigate to the Axe DevTools tab, and run an analysis on your desired webpage;
  • Como adicionar recursos de acessibilidade em um site?
    2 projects | /r/brdev | 12 May 2023
  • Is siteimprove legit?
    2 projects | /r/accessibility | 4 May 2023

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-01.
  • 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.
  • Learn Automated Testing At Home: A Beginner's Guide
    4 projects | dev.to | 4 Apr 2024
    4.Playwright: Playwright is a browser automation library by Microsoft. Key Features: Supports Chromium, Firefox, and WebKit. Provides cross-browser testing capabilities. Allows automating web, mobile, and desktop applications

What are some alternatives?

When comparing axe-core and Playwright you can also consider the following projects:

lighthouse - Automated auditing, performance metrics, and best practices for the web.

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

pa11y-ci - Pa11y CI is a CI-centric accessibility test runner, built using Pa11y

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

pa11y - Pa11y is your automated accessibility testing pal

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

CodeceptJS - Supercharged End 2 End Testing Framework for NodeJS

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

jest - Delightful JavaScript Testing.

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

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