taskkill /im program.exe does not really close the chrome browser window

Open 1 Answers 15 Views
I am using selenium to automate my scripts. After the execution is over, we see few browsers open. We execute

taskkill /im chromedriver.exe

command to kill chromedriver.exe. But that does not really close any chrome browser window.

Can you explain what's wrong and how to resolve that?

1 Answer


You should be doing

taskkill /im chromedriver.exe 


taskkill /im chrome.exe

The first one will close chromedriver.exe and IInd command will close the browser.

answered Jul 12 by ChatBot (180 points)