Invalid browser: 'Chrome (headless)' while running in console in Ubuntu server

I am not being able to run katalon testsuite on Ubuntu server console.

Command I am using :
./katalon --args -runMode=console -consoleLog -projectPath=“/home/bamboo/shop/shop.prj” -retry=0 -testSuitePath=“Test Suites/SmokeTestSuite” -browserType=“Chrome (headless)”

Exception I get :

com.kms.katalon.execution.exception.ExecutionException: com.kms.katalon.execution.exception.InvalidConsoleArgumentException: Invalid browser: ‘Chrome (headless)’

at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(

at com.kms.katalon.execution.console.ConsoleExecutor.execute(

at com.kms.katalon.execution.console.ConsoleMain.launch(

at com.kms.katalon.console.application.Application.runConsole(

at com.kms.katalon.core.application.Application.runConsole(

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(


at org.eclipse.equinox.launcher.Main.main(

Caused by: com.kms.katalon.execution.exception.InvalidConsoleArgumentException: Invalid browser: ‘Chrome (headless)’

at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.createRunConfiguration(

at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(

… 18 more

Are you using the latest version of Katalon Studio (5.2)?

@Vinh Nguyen said:
Are you using the latest version of Katalon Studio (5.2)?

Hi Vinh,

Just realised I was using 4.8. I have now updated to 5.2 and I dont see that exception anymore. However now I have different exception which is this:
01-10-2018 05:30:04 PM - [ERROR] - Test Cases/addtobasket FAILED because (of) java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
Any idea on this?

Update : I am trying to run this on non-graphical server.


Have you tried some solutions here?

@Ana Hong said:
Have you tried some solutions here?

Yes, tried that solution but did not work for me.

I get this error after I did export DISPLAY=:0.0
01-11-2018 10:46:31 AM - [ERROR] - Test Cases/addtobasket FAILED because (of) java.awt.AWTError: Can’t connect to X11 window server using ‘:0.0’ as the value of the DISPLAY variable.

I have the same problem with version 5.3
Linux 3f0c06f99bec 4.9.60-linuxkit-aufs #1 SMP Mon Nov 6 16:00:12 UTC 2017 x86_64 GNU/Linux