Console Logging - Selenium and Katalon

As you may or may not be aware of, you can not get Console Log from Firefox. I mean, the following code does not work for Firefox.

LogEntries logs = driver.manage().logs().get("browser")

The standard FirefoxDriver implementation (which is bundled in Katalon Studio) once was GeckoDriver. But now Marionette is bundled. See the following post:
https://stackoverflow.com/questions/43272919/difference-between-webdriver-firefox-marionette-webdriver-gecko-driver
Marionette is the implementation of the W3C WebDriver spec, which no longer comply with the good-old Selenium WebDriver API. Therefore we cannot get Console log from Firefox.

I would not be surprised if sometimes in future we can no longer get Console Log from the Google Chrome as well.

1 Like