# Terminating Chrome Driver

**URL:** <https://forum.katalon.com/t/terminating-chrome-driver/22443>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [April 3, 2019, 5:28pm UTC](https://forum.katalon.com/t/terminating-chrome-driver/22443 "2019-04-03T17:28:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morgan](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/morgan/32/3324_2.png) [@Morgan](https://forum.katalon.com/u/Morgan)\
**Post date:** [April 3, 2019, 5:28pm UTC](https://forum.katalon.com/t/terminating-chrome-driver/22443/1 "2019-04-03T17:28:52Z")

</div>

Is there a project setting that will terminate the Chrome driver even after the script execution does not complete? I’ve got a ton of ChromeDriver executables sitting in processes, I’m sure there is some easy way to kill them but I’ve not quite figured out. 🤔 Thanks!

---

<div class="post-metadata">

**Author:** ![Marek\_Melocik](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/marek_melocik/32/371_2.png) [@Marek\_Melocik](https://forum.katalon.com/u/Marek_Melocik)\
**Post date:** [April 3, 2019, 5:31pm UTC](https://forum.katalon.com/t/terminating-chrome-driver/22443/2 "2019-04-03T17:31:53Z")

</div>

What about this?

 ![20190403-193037](https://europe1.discourse-cdn.com/katalon/original/2X/9/9318c4befd276ec4a4dfa9831959b67b5a0aefac.jpeg)

In Project - Settings

---

<div class="post-metadata">

**Author:** ![Morgan](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/morgan/32/3324_2.png) [@Morgan](https://forum.katalon.com/u/Morgan)\
**Post date:** [April 3, 2019, 5:32pm UTC](https://forum.katalon.com/t/terminating-chrome-driver/22443/3 "2019-04-03T17:32:28Z")

</div>

A-HA! I was looking in Katalon Studio Preferences. Thank you!!!

---

<div class="post-metadata">

**Author:** ![Brandon\_Hein](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/brandon_hein/32/1092_2.png) [@Brandon\_Hein](https://forum.katalon.com/u/Brandon_Hein)\
**Post date:** [April 3, 2019, 6:30pm UTC](https://forum.katalon.com/t/terminating-chrome-driver/22443/4 "2019-04-03T18:30:22Z")

</div>

You can also do this yourself en-mass. See this post:

> [@Delete Katalon Studio and workspace folder](http://forum.katalon.com/t/delete-katalon-studio-and-workspace-folder/18910/3):
>
> This is almost always caused by drivers still running from a previous test run (this is a normal thing that always happens with webdriver). You can reboot, then delete the studio folder and the project folder, or easier still, run the following command from the command line, depending on which browser’s you’ve executed things in: Chrome: taskkill -F -IM chromedriver.exe Firefox taskkill -F -IM geckodriver.exe Edge taskkill -F -IM MicrosoftWebDriver.exe IE taskkill -F -IM IEDriver…

Just an FYI that if you change that project setting that Marek has highlighted, you won’t be able to use some features, most notably the “Run from here” feature.

---

<div class="post-metadata">

**Author:** ![Dave\_Evers](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dave_evers/32/435_2.png) [@Dave\_Evers](https://forum.katalon.com/u/Dave_Evers)\
**Post date:** [April 4, 2019, 3:10pm UTC](https://forum.katalon.com/t/terminating-chrome-driver/22443/5 "2019-04-04T15:10:07Z")

</div>

I sometimes have to kill Katalon and my web browsers as well, so I created a Windows batch file with the following contents:

REM Stops Katalon Console Mode  
taskkill /f /im katalon.exe  
taskkill /f /im chromedriver.exe  
taskkill /f /im IEDriverServer.exe  
taskkill /f /im geckodriver.exe  
taskkill /f /im firefox.exe  
taskkill /f /im java.exe  
taskkill /f /im node.exe  
taskkill /f /im chrome.exe

---

<div class="post-metadata">

**Author:** ![Brandon\_Hein](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/brandon_hein/32/1092_2.png) [@Brandon\_Hein](https://forum.katalon.com/u/Brandon_Hein)\
**Post date:** [April 4, 2019, 3:20pm UTC](https://forum.katalon.com/t/terminating-chrome-driver/22443/6 "2019-04-04T15:20:43Z")

</div>

Nice, I like that!

---

<div class="post-metadata">

**Author:** ![kondaraghu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kondaraghu/32/16103_2.png) [@kondaraghu](https://forum.katalon.com/u/kondaraghu)\
**Post date:** [April 5, 2019, 4:44pm UTC](https://forum.katalon.com/t/terminating-chrome-driver/22443/7 "2019-04-05T16:44:47Z")

</div>

I have question regarding same topic. How do we set not to Terminate driver ONLY if the test case fails? So, terminate when test case pass but DO NOT if test case fails…

If the driver is terminated when the test case fails, “Run from here” feature will be of no use in this case as the driver is already terminated.

Any thoughts?

Thanks
