addyosmani/a11y

Is it possible to run a11y against sites requiring login?

Opened this issue · 3 comments

Is it possible to run a11y against sites requiring login?

a11y uses phantomjs and you can probably provide more options using the cli.

https://github.com/addyosmani/a11y/blob/master/index.js#L33-L38

phantomjs accepts a userName and password setting for pages (just in the API, not on the CLI as command line option afaik).

You may need a custom version of https://github.com/addyosmani/a11y/blob/7ebffa7b3bea489caafbd86da4147bb21c98ea47/audits.js

webpage.settings.userNameand webpage.settings.password is what you are looking for