I am using npm package webdriver-manager to start driver on machine. It fails if the driver is already started.
Is there a way that I can stop and restart the webdriver? Or something like ignore if already started?
If you're using Protractor, you can add seleniumServerJar
to your config file, and protractor will start/stop the selenium server for you.
exports.config = {
seleniumServerJar: "path/to/selenium-server-standalone-2.45.0.jar",
...