- git clone {this repository}
- cd {your folder}
- npm install
- npm install axe-webdriverjs
- npm install selenium-webdriver
- npm install axe-reports
- npm install async
- node axe.js => results.csv
This will create a csv report of your website's audit against accessibility rules provided by the axe-core library.
If you inspect your website in a browser, you will see the following script tag inserted in every iframe element.
<script src="node_modules/axe-core/axe.min.js"></script>
Customizable code in the project -
var url = "YourWebsiteNameGoesHere";
await driver.findElement(WebDriver.By.id("userName")).sendKeys("yourUserName");
await driver.findElement(WebDriver.By.id("password")).sendKeys("yourPassword");
await driver.findElement(WebDriver.By.className("yourLoginButtonClass")).click()