Questions tagged [pa11y]

Pa11y is an automated accessibility testing tool. It runs HTML CodeSniffer from the command line for programmatic accessibility reporting.

Related projects

The Node.js-based Pa11y command-line tool is the core tool in the suite. It uses a PhantomJS instance to browse a supplied webpage, and then runs Squizlabs' HTML_Codesniffer on that webpage, returning any accessibility errors it finds.

There is also a separate Pa11y Dashboard project for running a series of tests and graphing errors over time, a CI tool, and a webservice.

Documentation

38 questions
3
votes
0 answers

pa11y-ci fails to find HTML element

I am trying to test the accessibility of the login experience of a website I am working on using pa11y. I am using pa11y-ci with the config below but can't seem to get it to work: { "urls": [ { "url": "https://somewhere/home", …
Carole
  • 31
  • 2
2
votes
0 answers

How can I add a custom rules to the pa11y axe runner?

I'd like to use the pa11y axe runner and include custom rules. Deque documents that axe can process custom rules at https://www.deque.com/axe/core-documentation/api-documentation/#synopsis-1. I can configure axe to use a custom rule with this…
calebtr
  • 200
  • 7
2
votes
1 answer

Pa11y throwing Timeout

I wanted to try pa11y locally before implementing it on my actual project. heres what I did pre-requisite: nodejs is installed create a fresh folder execute: npm install -g pa11y tried to test "pa11y https://mail.google.com" I am receiving timeout…
Sowmya
  • 51
  • 6
2
votes
1 answer

Is there a way to utilize both Section508 and WCAG2AA standards in a single execution of pa11y?

I am attempting to determine if pa11y is the best tool to help us identify potential Section508 and WCAG2AA issues in our CI/CD pipeline. Thus, I am currently testing the single use version to view the results it generates. The issue I am running…
2
votes
1 answer

Accessibility Testing using Pa11y 5 on a page with Popup / Overlay

I have a page that I'm able to get accessibility test report from Pa11y 5 using actions. When I click on a button on that specific page, I get a popup/overlay, I would like Pa11y to sniff that popup/overlay page and report on accessibility metrics,…
Nan
  • 95
  • 1
  • 8
1
vote
1 answer

How to get the target line number and columns range in `pa11y`?

According to TypeScript typings the pa11y returns: interface ResultIssue { code: string; context: string; message: string; selector: string; type: string; typeCode: number; } Example value (looks line the TypeScript typings…
Takeshi Tokugawa YD
  • 670
  • 5
  • 40
  • 124
1
vote
2 answers

Pa11y actions reference / documentation

How do you enter values to match a name="" attribute, or class=""? I'm guessing that # is referring to id="" only? If HTML ID attributes are not available there needs to be a way to match other attributes or the element itself. Is there a reference…
Adamantus
  • 813
  • 1
  • 12
  • 30
1
vote
1 answer

How do I use the HTML/CSV reporters in pa11y with GitHub Actions?

I'm trying to get pa11y to output HTML and CSV reports. Here's the errors: Unable to load reporter "csv" Unable to load reporter "html" I have pa11y configured to generate cli, csv, and html reports, but only the cli report is output…
Patrick Kenny
  • 4,515
  • 7
  • 47
  • 76
1
vote
1 answer

pa11y json configuration file for actions : https://github.com/pa11y/pa11y#actions

We use jenkins CI tool for automated accessibility testing provided by pa11y. As such i use the below Jenkinsfile to run the tests. node('mypod') { container('centos') { def NODEJS_HOME env.NODEJS_HOME = "${tool…
Ashley
  • 1,447
  • 3
  • 26
  • 52
1
vote
1 answer

pa11y-ci: How to specify filename for default html report?

I have Pa11y working well with the Json output, but I wanted to provide a HTML report for clients. We do manual WCAG checks right now and are migrating to a more automated approach. I've installed the Pa11y HTML reporter, and it seems to want to…
Adamantus
  • 813
  • 1
  • 12
  • 30
1
vote
0 answers

How do I input OTP value in protected pages using Pa11y.js?

Is it possible to manually input one time password in Pa11y console? I'm running my pa11y.js code using Node console. I'm running into issues how to manually enter the OTP that I receive on mobile. My workflow and code snippet below: Login page Then…
Souvik
  • 11
  • 3
1
vote
1 answer

What is the right solution for the responsive design of an accessible dropdowm navigation menu with more than 4 items?

I learned from Stephanie Eckles's CSS-Only Accessible Dropdown Navigation Menu. But her responsive design of that dropdowm navigation menu works only for a menu with less than 3 items, not for a menu with more than 4 items. I would like to keep that…
Oo'-
  • 203
  • 6
  • 22
1
vote
1 answer

Error: Chromium revision is not downloaded. Run "npm install" or "yarn install"

I am trying to run the following command but I am getting the error like pa11y http://example.com/ # Trying to run this on my terminal Welcome to Pa11y ------------------------ Error: Chromium revision is not downloaded. Run "npm install" or "yarn…
Mahesh
  • 1,117
  • 2
  • 23
  • 42
1
vote
0 answers

Is there any way to use Pa11y Actions to call a JavaScript function?

I am running into an issue with Pa11y Actions where the "Click element..." action doesn't trigger the JavaScript "onclick" function to run. Is there any way to use Pa11y's Actions feature to call a JavaScript function on a page?
Tim Winfred
  • 221
  • 2
  • 9
1
vote
2 answers

Unable to use pa11y actions to login to sites

I'm seemingly unable to login to sites using pa11y and it's 'actions' feature. The documentation and sites I've found talking about pa11y actions seem to indicate this is a simple affair, but I'm having no luck. I've attempted to login to various…
awhalen
  • 11
  • 4
1
2 3