angular / webdriver-manager

A binary manager for E2E testing
MIT License
224 stars 116 forks source link

Webdriver-manager start --detach does not return correct process PID #457

Open EvgeniyZ opened 4 years ago

EvgeniyZ commented 4 years ago

webdriver-manager start --detach returning multiple PID's (one for seleniumProcess, one for detached) but none of them are real. I'm calling webdriver-manager start --detach

webdriver-manager start --detach

webdriver-manager: using local installed version 12.1.7
[11:22:48] 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:22:48] I/start - seleniumProcess.pid: 16352
11:22:49.132 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.59, revision: e82be7d358
11:22:49.197 INFO [GridLauncherV3.lambda$buildLaunchers$3] - Launching a standalone Selenium Server on port 4444
2020-04-09 11:22:49.233:INFO::main: Logging initialized @275ms to org.seleniumhq.jetty9.util.log.StdErrLog
11:22:49.415 INFO [WebDriverServlet.<init>] - Initialising WebDriverServlet
11:22:49.882 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 4444
[11:22:49] I/start - Everything started
[11:22:49] I/start - Detached pid: 12832

However, 16352 and 12832 are not a java.exe PID, so I can't use them to kill selenium java.exe process directly. Instead, I see that java.exe selenium process started with PID 32760 ProcessExplorer selenium-server java.exe image

Is it possible to also return a java.exe PID process when starting webdriver-manager start --detach?