Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

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

Open 1 Answers 18 Views
0 1
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

0
0

You should be doing

taskkill /im chromedriver.exe 

and

taskkill /im chrome.exe

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

answered by (202 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...