angular / webdriver-manager

A binary manager for E2E testing
MIT License
225 stars 117 forks source link

Webdriver-manager shutdown does not work even if selenium-server started as detach #456

Open EvgeniyZ opened 4 years ago

EvgeniyZ commented 4 years ago

webdriver-manager shutdown does not shutdown detached selenium-server.

I'm calling webdriver-manager update

webdriver-manager update --gecko=false

webdriver-manager: using local installed version 12.1.7
[11:03:23] I/file_manager - creating folder C:\test-e2e\e2e\node_modules\webdriver-manager\selenium
[11:03:23] I/config_source - curl -oC:\test-e2e\e2e\node_modules\webdriver-manager\selenium\standalone-response.xml https://selenium-release.storage.googleapis.com/
[11:03:23] I/config_source - curl -oC:\test-e2e\e2e\node_modules\webdriver-manager\selenium\chrome-response.xml https://chromedriver.storage.googleapis.com/
[11:03:23] I/downloader - curl -oC:\test-e2e\e2e\node_modules\webdriver-manager\selenium/chromedriver_81.0.4044.69.zip https://chromedriver.storage.googleapis.com/81.0.4044.20/chromedriver_win32.zip
[11:03:24] I/downloader - curl -oC:\test-e2e\e2e\node_modules\webdriver-manager\selenium/selenium-server-standalone-3.141.59.jar https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar
[11:03:24] I/update - chromedriver: unzipping chromedriver_81.0.4044.69.zip

After that, I'm calling webdriver-manager start --detach

 webdriver-manager start --detach

webdriver-manager: using local installed version 12.1.7
[11:03:53] I/start - java -Dwebdriver.chrome.driver=C:\test-e2e\e2e\node_modules\webdriver-manager\selenium\chromedriver_81.0.4044.69.exe -jar C:\test-e2e\e2e\node_modules\webdriver-manager\selenium\selenium-server-standalone-3.141.59.jar -port 4444
[11:03:53] I/start - seleniumProcess.pid: 3844
11:03:53.465 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.59, revision: e82be7d358
11:03:53.530 INFO [GridLauncherV3.lambda$buildLaunchers$3] - Launching a standalone Selenium Server on port 4444
2020-04-09 11:03:53.563:INFO::main: Logging initialized @265ms to org.seleniumhq.jetty9.util.log.StdErrLog
11:03:53.774 INFO [WebDriverServlet.<init>] - Initialising WebDriverServlet
11:03:54.237 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 4444
[11:03:54] I/start - Everything started
[11:03:54] I/start - Detached pid: 26556

Finally, I'm calling webdriver-manager shutdown

webdriver-manager: using local installed version 12.1.7
[11:03:59] I/shutdown - Attempting to shut down selenium nicely

And nothing happened to a selenium-server. It continues to work. It's a real headache for me, am I doing something wrong?

Windows 10 Professional. "webdriver-manager": "^12.1.7", as devDependency in package.json

CerosDev commented 4 years ago

did you find something? I'm facing the same issue

EvgeniyZ commented 4 years ago

@CerosDev yeah, I managed to solve my problem by stopping selenium server manually via powershell script. Just look if the process with default selenium server port exists, and if true then kill it

Mugane commented 3 years ago

Still need a solution, requiring manual shutdown is bogus...