ChRec's core business logic and model for testing HTML locator robustness


Keywords
ChRec, Selenium, CSS, selector, XPath, locator, replay, test, testing, WebDriver, robustness, fragility, web
License
Apache-2.0
Install
npm install chrec-core@0.7.1

Documentation

ChRec Core

ChRec's core and replay business logic and model for testing HTML locator robustness.

Build Status Codecov Coverage

Contributing

Clone this repository:

git clone https://github.com/cyluxx/chrec-core.git

Navigate to the installed location and install dependencies:

cd chrec-core
npm install

Run Tests with:

npm run test

Make sure that at least one proper Selenium server instance is running and all corresponding webdrivers are installed and configured:

You can configure your Selenium Url via the SELENIUM_SERVER_URL variable in the package.json:

"scripts": {
    ...
    "test-dev": "cross-env SELENIUM_SERVER_URL=http://localhost:4444/wd/hub NODE_ENV=dev jest --config jestconfig.json",
    ...
  },

Format code with:

npm run format

Lint code with:

npm run lint