ChRec's core and replay business logic and model for testing HTML locator robustness.
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