Passing desired capabilities to Katalon in console mode

Hi,

How are desired capabilities passed to Katalon in console mode?

Thanks!

2 Likes

Finally figured it out if you are using a Remote browser.

  1. In <project_path>/settings/internal/com.kms.katalon.core.webui.remote.properties, you can specify remote browser settings.

    {"REMOTE_WEB_DRIVER":{	"goog:chromeOptions": {		"args": [			"--headless",			"--no-sandbox"		]	},	"browserName":"chrome",	"remoteWebDriverUrl":"http://localhost:4444/wd/hub",	"remoteWebDriverType":"Selenium"}
    
  2. Katalon may be launched by

    ./katalon -runMode=console -consoleLog -projectPath="/myproject/" -testSuitePath="Test Suites/My Test Suite" -browserType="Remote"
    

    Since the remote server parameters have already been specified in the file, they are no longer included in the command.

2 Likes

args : “–headless” doesn’t work for remote selenium grid

image

Even in local, I add [‘args’, ‘–headless’] to my firefox but Katalon doesn’t recognize it

image