WebdriverIO demos against https://the-internet.herokuapp.com
app.
- selenium-webdriver as e2e testing framework.
- Jest as test runner.
- TypeScript to get autocompletion and type safety.
- ESLint to enforce code consistency.
- Node 16 or above
Windows:
- Run
npm i -g chromedriver
- See the output of the command above, at the end of the output you should see
ChromeDriver binary available at <SOME_FOLDER>\chromedriver.exe
- Copy the path to folder where
chromedriver.exe
is installed (without the exe file, only folder). - Add the folder above to
PATH
environment variable - Note that changing
PATH
require restart of currently running consoles (or VSCode).
Linux or macOS:
- Just run
npm i -g chomedriver
, no need to add it to the path.
Run against https://the-internet.herokuapp.com
:
export HEADLESS=true
export BASE_URL=https://the-internet.herokuapp.com/
npm run test
Run against locally hosted version of the internet app.
docker run -d -p 8080:5000 gprestes/the-internet
export HEADLESS=true
export BASE_URL=http://localhost:8080/
npm run test