Initial setup: ChromeDriver DevToolsActivePort file doesn't exist


I am a newbie, just trying to decide if we want to use Katalon. It looks very impressive, if we could get it to work. I can record from an existing Chrome browser, and I can run the testcase in a headless Chrome browser, and IE just fine. However if I try to run it normally in Chrome, it opens the browser with a “data:,” location.

After spending a couple days reading the Forum, Stackoverflow, etc. and trying all the possible fixes I could find I still have the Chromedriver log file saying: DevToolsActivePort file doesn’t exist. (The chrome runtime options are below)

Since this seems to be a pretty common problem, perhaps someone can see something in the log files I missed. …I don’t know how to actually attach the log files, but I included some of the interesting bits.

Computer: Windows 10 Enterprise, V1803, 64-bit accessible to the internet, but on a semi-secure network - and no idea what may have been locked down.

From Katalan’s log file:

!SESSION 2019-07-25 15:28:32.244 -----------------------------------------------
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_CA
Command-line arguments: -os win32 -ws win32 -arch x86_64 -data @noDefault

From Chromedriver (from the most recent version of Katalon)

[1564082972.004][INFO]: Starting ChromeDriver 74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29})

Chrome is: Version 75.0.3770.142 (Official Build) (64-bit)
(I have also tried running this with ChromeDriver 75.0.3770.140 outside of Katalon, but same problem)

I rebooted the computer before capturing these logs to be sure there were no old chromedrivers running etc.

Chromedriver error: (**** and chrome runtime options from every potential fix I could find on the web…)

[1564082972.736][INFO]: Launching chrome: “C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” --chrome.switches --disable-background-networking --disable-browser-side-navigation --disable-client-side-phishing-detection --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-extensions-except=“C:\Users\admburrk\AppData\Local\Temp\2\scoped_dir12308_21909\internal” --disable-gpu --disable-hang-monitor --disable-infobars --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-automation --enable-blink-features=ShadowDOMV0 --enable-logging --force-fieldtrials=SiteIsolationExtensions/Control --ignore-certificate-errors --log-level=0 --no-first-run --no-sandbox --password-store=basic --remote-debugging-port=0 --start-maximized --test-type=webdriver --use-mock-keychain --user-data-dir=“C:\Users\admburrk\AppData\Local\Temp\2\scoped_dir12308_6209” data:,
[1564083032.771][INFO]: Failed to connect to Chrome. Attempting to kill it.
[1564083032.948][INFO]: [83364bf1a9bb732c5a6f4e1bd7598370] RESPONSE InitSession ERROR unknown error: DevToolsActivePort file doesn’t exist

And finally the Katalon log:

!ENTRY org.eclipse.ui 4 0 2019-07-25 15:29:24.789
!MESSAGE Unhandled event loop exception
org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swt.SWTException: Widget is disposed)
	at org.eclipse.swt.SWT.error(
	at org.eclipse.swt.SWT.error(
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(
	at org.eclipse.swt.widgets.Display.runAsyncMessages(
	at org.eclipse.swt.widgets.Display.readAndDispatch(
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
	at org.eclipse.ui.internal.Workbench$
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
	at com.kms.katalon.core.application.Application.internalRunGUI(
	at com.kms.katalon.core.application.Application.runGUI(
	at com.kms.katalon.core.application.Application.start(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.eclipse.equinox.launcher.Main.invokeFramework(
	at org.eclipse.equinox.launcher.Main.basicRun(
Caused by: org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(
	at org.eclipse.swt.SWT.error(
	at org.eclipse.swt.SWT.error(
	at org.eclipse.swt.widgets.Widget.error(
	at org.eclipse.swt.widgets.Widget.checkWidget(
	at org.eclipse.swt.widgets.Composite.setFocus(
	at com.kms.katalon.composer.project.dialog.WalkthroughDialog$1.lambda$0(
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(
	... 25 more
Launcher status after execution process completed: Running

Do you have an idea what I may have missed? Any critical information I have left out?


If it is of any interest, when running the ChromeDriver from another tool, I get these errors repeated twice:

[5764:14120:0728/] Unknown policy: AlwaysAuthorizePlugins
[5764:14120:0728/] Unknown policy: DisablePluginFinder
[5764:14120:0728/] Unknown policy: DisableSSLRecordSplitting
[5764:14120:0728/] Unknown policy: DisableSpdy
[5764:14120:0728/] Unknown policy: DnsPrefetchingEnabled
[5764:14120:0728/] Unknown policy: HideWebStorePromo
[5764:14120:0728/] Unknown policy: InstantEnabled
[5764:14120:0728/] Unknown policy: PasswordManagerAllowShowPasswords
[5764:14120:0728/] Unknown policy: RemoteAccessClientFirewallTraversal

I don’t get these errors when running from Katalon, but they may still apply.

Looking in chrome://policy/ they are all listed as unknown policies (as well as there being a long list of other valid polices. I don’t seem to have access to remove them (although I could be wrong) and disabling all policies (if even possible) would of course invalidate the testing

My list of flags has now grown to:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" 

Thank-you for your help.

To whom it may concern (or anyone searching who stumbles across this) deleting the unknown chrome policies from the registry made the error messages go away but chromedriver still cannot control chrome.

They are found in: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome

I have managed to find some fixes, but not perfect ones. I have included them in this post here:

Hey Guys, to workaround the error message for “DevToolsActivePort file doesn’t exist” and the error messge for “failed to load extensions”, I’m using the chrome executable at C:Program Files, see the code below, and although the chrome browser launches successfully (but doesn’t go to my url path), I now get the error message “org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start” - Uggghhh!!!

String pathToChromeDriver = ‘C:\Program Files (x86)\Google\Chrome\Application\chrome.exe’
System.setProperty(‘’, pathToChromeDriver)
WebDriver driver = new ChromeDriver()
driver.get(‘my url’)


There are a lot of things that can cause this error message, it basically means the ChromeDriver and Chrome can’t find each other, and there are other solutions out on the web.

As my post above explains, and the one I link to, this was caused by our organization using Chrome’s Roaming policy which prevented ChromeDriver from creating a unique profile for each browser being controlled. Our solution (in the linked post) was to force ChromeDriver to always use the common roaming profile (user-app-dir option) - which means there can only ever be one Chrome browser running.

It has been a long time since I fought with this, so I can’t remember if your error is one of the many I had to work my way through. If you don’t have your Roaming Policy turned on, then it may be a different problem - or you may have more than one - but there are a lot of suggested fixes out there.