How to return and parse this specific information from Chrome Browser console?

So I was able to get it working using a JavaScript call to the console:

def data_value = WebUI.executeJavaScript("var consoleResponse =_bttUtil.consoleResponse; return consoleResponse;", null)
KeywordUtil.logInfo ('consoleResponse: ' + data_value)

with the response being of the format

consoleResponse: [firstPaint:1424, pageValue:0, tul:0, CLS:, ssl:65, redirectStart:0, requestStart:1712278403926, wcd:0, cartValue:0]

However I’m not quite sure how to parse this information from within the variable.

I recall seeing an example of this type of two dimensional array in Katalon, and how to reference the value by the key, but can’t recall exactly what Katalon calls it, any thoughts?

1 Like