Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
823 views
by The go-to Tester (222 points)
retagged by
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 like 0 dislike
by The go-to Tester (222 points)

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.

...