How do we stop webdriver-manager?

Ronak Agrawal picture Ronak Agrawal · Sep 12, 2015 · Viewed 8.4k times · Source

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?

Answer

Brine picture Brine · Sep 12, 2015

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",
...