There are many good articles on how to get started with automated browser testing using the NodeJS version of Selenium.
Some wrap the tests in Mocha or Jasmine, and some automate everything with npm or Grunt or Gulp. All of them describe how to install what you need, along with giving a basic working code example. This is very helpful because getting all the different pieces working for the first time can be a challenge.
But they fall short of digging into the details of the many gotchas and best practice of automating your browser testing when using Selenium.
This article continues where those other articles leave off, and will help you to write automated browser tests that are far more reliable and maintainable with the NodeJS Selenium API.
... read the whole story at medium.freecodecamp.org.