Terminating Chrome Driver

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. :thinking: Thanks!

What about this?

In Project - Settings

2 Likes

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

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

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.

1 Like

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

2 Likes

Nice, I like that!

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