dequelabs / axe-webdriverjs

Provides a chainable axe API for Selenium's WebDriverJS and automatically injects into all frames.
Mozilla Public License 2.0
130 stars 46 forks source link

Nightwatch.js and aXe integration #12

Closed cosminnicula closed 5 years ago

cosminnicula commented 8 years ago

I'm using Nightwatch.js (http://nightwatchjs.org) for my e2e tests, which is something similar with selenium-webdriver (https://www.npmjs.com/package/selenium-webdriver).

As far as I can see in the aXe & Selenium Webdriver integration sample https://github.com/marcysutton/axe-webdriverjs-demo/blob/master/spec/test.js, you basically just need to call AxeBuilder(driver).analyze(function(results) { ... }) and you get your audit results.

I guess the problem with Nightwatch.js and aXe is that Nightwatch.js' API is different from the Selenium Webdriver hence aXe does not know how to inject the iFrame in the page in order to run the audit.

Are there any plans to support this type of integration? Is there any integration example for Nightwatch.js and aXe?

dylanb commented 8 years ago

@cosminnicula we currently do not have plans however, you could still use axe-core with Nightwatch.js by doing the injection yourself.

mgifford commented 6 years ago

Just providing this followup https://www.previousnext.com.au/blog/automate-your-drupal-accessibility-testing-axe-and-nightwatchjs

straker commented 5 years ago

Closing this since Nightwatch.js released their own integration.

mgifford commented 5 years ago

Bloody Nightwatch community is too active.... Can you point me to the project were they did this? https://github.com/nightwatchjs is too general.

straker commented 5 years ago

Isn't https://github.com/ahmadnassri/nightwatch-accessibility the integration for Nightwatch.js and axe?

mgifford commented 5 years ago

I hadn't stumbled across this. Thanks for the link.