How to execute chrome with verbose logging

Or, rather, having dug deeper into this:

I’ve got some code that produces (I believe) the desired result

DesiredCapabilities caps = DesiredCapabilities.chrome()
LoggingPreferences logPrefs = new LoggingPreferences()
logPrefs.enable(LogType.BROWSER, Level.INFO)
caps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs)

but I now need to pass caps into Katalon to be used as the capabilities of the default driver. Is there any easy way to do this through code? or, if not, how would I format it in the execution settings?

2 Likes