Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

level-level/abelNode

 
 

Repository files navigation

Abel - Accessibility checker

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.

You will need to have Nodejs 8 installed to run this project correctly without any errors.

install the following drivers:

Geckodriver

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/

Selenium webDriver & Firefox

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);
				});
		});

Tool results example 1

#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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 47.0%
  • CSS 44.0%
  • JavaScript 8.9%
  • Shell 0.1%