WebdriverJS (confusingly aka Selenium-Webdriver
:\ ) is an adorable little e2e testing framework... with all the quirks we've come to expect from it.
At the end of the day... I definitely would choose vanilla webdriverjs over Protractor or WebdriverIO because of the crazy amount of changes both of those frameworks go through (and we must endure). But ultimately, I'd recommend getting off Selenium/Webdriver altogether.
These example E2E tests:
- use WebdriverJS
- run via Jest
- use page objects
- run in parallel
- use ES6y
- run on CI
- are a bit silly but you'll get the point...
assumes you have Nodejs 10+ and Git installed
- clone it!
git clone [email protected]:qualityshepherd/webdriverjs-example.git
- jump into the directory
cd webdriverjs-example
- install dependencies:
npm i
- run tests:
npm test