Can I log browser console errors?

@kazurayam I just tried to do this

driver.get(SuiteVars.WebTabUrl()) ---- > I am opening the application which is deployed on web

WebUI.delay(15)

WebDriver driver = DriverFactory.getWebDriver()

LogEntries logs = driver.manage().logs().get(“browser”)

for (LogEntry entry: logs){

println(entry.getMessage())

}

Hi all,

I tried to use the code to print the console errors in Katalon.

WebDriver driver = DriverFactory.getWebDriver()
LogEntries logs = driver.manage().logs().get(“browser”)
for (LogEntry entry : logs)
{
println entry.getLevel().toString() + " " + entry.getMessage()
}

However, it prints several error messages that doesn’t actually appear in the browser Console when I checked the Devtools. The error messages printed in Katalon is shown below: