-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
programmatic api for extension #787
Comments
Hi Mark, Thanks for writing up this request! Typically, we recommend that folks looking to automatically/programatically run accessibility scans use axe-core (the accessibility scanning engine Accessibility Insights uses under the hood for all of its automated checks) directly, which already provides JSON-formatted scan results and has many integration libraries to help you run it from a variety of different languages and test frameworks, and we have published samples of how to integrate it in Azure Pipelines CI builds. Does axe-core sound like what you're looking for? If not, can you help us understand more about your motivation for wanting to automate at the Accessibility Insights level specifically, rather than at the scanning engine level? |
The team requires additional author feedback; please review their replies and update this issue accordingly. Thank you for contributing to Accessibility Insights! |
thanks for the response! We already do use axe-core to run automated browser testing - I'm interested in incorporating your manual tests into our a11y testing workflow tool - that's where things are much more interesting. |
This issue has been marked as ready for team triage; we will triage it in our weekly review and update the issue. Thank you for contributing to Accessibility Insights! |
This issue requires additional investigation by the Accessibility Insights team. When the issue is ready to be triaged again, we will update the issue with the investigation result and add "status: ready for triage". Thank you for contributing to Accessibility Insights! |
This would be very helpful for my team as well! Would be interested to know ball park timings on when this is coming. |
I use axe-core and have been thinking about something similar as well! |
based on conversation when revisiting this feature request, we have created a way to export an Assessment report as JSON and at this moment we believe the implications of creating an API are out of the scope for the project |
This issue has been marked as being beyond the support scope of Accessibility Insights. It will now be closed automatically for house-keeping purposes. |
Is your feature request related to a problem? Please describe.
I would like to kick off an accessibility run programmatically from within my webpage. I am creating a web UI that wants to programmatically launch MS AI against a given URL (see https://developer.chrome.com/apps/messaging#external-webpage)
Describe the desired outcome
Ideally would like to postMessage to the extension with a URL and an opaque token and whether to run FastPass or Manual accessibility checks. AI will then run either and when the user clicks 'Export Report' the report will be postMessage'd back to my UI (ideally this report would be in JSON not HTML but don't want to confuse/add any extra work initially!)
Describe alternatives you've considered
I can drive the extension using puppeteer but that requires users to download local code (to spawn the browser with the URL and MS AI pointing back to it).
I can also create another extension to drive the process but that's clunky plus requires Chrome to be started with additional, non-standard command line arguments (--silent-debugger-extension-api and --extensions-on-chrome-urls)
The cleanest solution is to update MS AI itself to have an API that can be driven by any page.
Additional context
THANKS - I can look into creating a PR for this if this is something you'd accept
The text was updated successfully, but these errors were encountered: