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
1
vote
1 answer

Passing options for headless chrome

Is it possible to pass config options for browser launch? Running into issues when trying to run continuous integration (CircleCi) Launching Headless Chrome Failed to launch chrome! [0731/172545.445686:ERROR:zygote_host_impl_linux.cc(89)] Running as…
Tim Arney
  • 1,776
  • 2
  • 18
  • 23
1
vote
2 answers

How do I add rules to pa11y-ci?

I need to customize the ruleset used by pa11y. For instance let's say I want to follow WCAG2A but want to add some rules from WCAG2AA. I tried with something like this for configuration in my .pa11yci-file: { "defaults": { "standard": "WCAG2A", …
jBoive
  • 1,219
  • 1
  • 14
  • 40
1
vote
1 answer

Can you target xpath in pa11y?

Doing ADA Testing and was wondering if you can target xpath for Pa11y's actions. For instance: "click element xpath", I only ask because there are multiple elements on the page with the same target. No unique identifiers to tell pa11y what to…
jamesfr
  • 45
  • 5
1
vote
0 answers

When I use pally-ci with localhost I get NO errors, but external urls I get correct errors

When I use pally-ci with localhost I get NO errors, but external urls I get correct errors and warnings. Does anyone have this issue also. my .pa11yci.js module.exports = { urls: [ …
1
vote
1 answer

Fieldset's legend inside of a div fails pa11y WCAG 2.0

I have a fieldset like the following:
Your full name:
I have the legend inside of a…
mjoyce91
  • 316
  • 2
  • 19
1
vote
1 answer

How to know Angular2 application has finished rendering

Using JS, I need to wait until an Angular2 application has finished to initialize all these data and render the dom completely. It should be done from outside the Angular2 application. I'm actually running pa11y and want to wait before to check…
Yoann Augen
  • 1,966
  • 3
  • 21
  • 39
0
votes
0 answers

Pass the right valid CSS Selector for an element in pa11y Actions

I have a Login button on a page which has below element in HTML :- This button is located under below div :-
Ashley
  • 1,447
  • 3
  • 26
  • 52
0
votes
0 answers

pa11y/cypress using typescript

I have been asked to add pa11y to our existing cypress regression pack. I got a proof of concept project working installing and setting up the config and writing one tests, this worked out of the box as expected. However as I try to transpose the…
0
votes
2 answers

How to check the accessibility with Node.js of the raw HTML code, not URI?

I need to check the accessibility of HTML code, herewith: I need the Node.js API (class of function), not CLI. I want to pass the HTML string as parameter, not the URI of file path. Is should be something like: import AccessibilityInspector from…
Takeshi Tokugawa YD
  • 670
  • 5
  • 40
  • 124
0
votes
0 answers

How to run pa11y tests on urls that need two-factor authentication?

Is there any way you can run pa11y on an url that has two-factor authentication ? In general, what is the approach to run test for pages that has two-factor authentication. #pa11y #two-factor authentication I'm looking for a way to can auto run 508…
Tru
  • 1
0
votes
1 answer

Using Cookies or useIncognitoBrowserContext in Pa11y-ci

I am trying to test a website that requires a login for the site. The issue I am running into is that pa11y-ci is not able to get past the login screen. I know the username and password are correct. I have tried to set the useIncognitoBrowserContext…
brownie_1
  • 1
  • 1
0
votes
1 answer

How to configure pa11y timeout under actions for a json config file to override default 30 seconds timeout

We have a jenkins scripted pipeline to run pa11y automated testing against a set of authenticated URLs using Actions. We run it on linux and the config file is a json format file. Below is the file :- { "chromeLaunchConfig": { "args":…
Ashley
  • 1,447
  • 3
  • 26
  • 52
0
votes
0 answers

Importing an async function in a ReactJS component

so I'm trying to import an async function (that is in a separate file) in a ReactJS component and ending up with the following error: TypeError: The "original" argument must be of type Function promisify node_modules/util/util.js:601 598 | var…
AnonSar
  • 556
  • 1
  • 7
  • 24
0
votes
1 answer

How do I log in / authenticate before testing in pa11y-ci?

I want to test pages as an authenticated user with pa11y-ci. I am running pa11y-ci like this: pa11y-ci --sitemap http://www.example.com/sitemap.xml --sitemap-find https --sitemap-replace http I found some documentation on logging in with pa11y…
Patrick Kenny
  • 4,515
  • 7
  • 47
  • 76
0
votes
0 answers

pa11y failed to Error: Failed to launch chrome

Getting below error while running "pa11y www.google.com" Welcome to Pa11y Running Pa11y on URL www.google.com Error: Failed to launch chrome! [1127/090329.278232:FATAL:zygote_host_impl_linux.cc(116)] No usable sandbox! Update your kernel or…