This project is build on the Express framework in NodeJS.
This webapp uses the axe-webdriverjs to display accessibility issues in your html elements.
It also needs to use selenium-webdriver to start a browser to test your website.
wget https://github.com/mozilla/geckodriver/releases/download/v0.19.0/geckodriver-v0.19.0-linux64.tar.gz
tar -xvzf geckodriver*
chmod +x geckodriver
sudo mv geckodriver /usr/local/bin/
Running Selenium WebDriver tests using Firefox headless mode on Ubuntu
Use npm install to install all necessary packages
cd abelNode
npm install
how to run the project
nodemon server.js
here below is a sample code that shows how to test a url:
var driver = new WebDriver.Builder()
.forBrowser('firefox')
.setFirefoxOptions(new firefox.Options().headless())
.build();
driver
.get("https://"+url)
.then(function () {
AxeBuilder(driver)
.analyze(function (results) {
driver.quit();
console.log(results);
});
});
#Running multiple instances with PM2 with load balancing Install PM2 with npm or Yarn
npm install pm2 -g
Install the PM2 autocomplete
pm2 completion install
Start the server instances.
sh start_servers.sh