Trying to get the current webdriver instance is displaying 'Cannot call non W3C standard command while in W3C mode' error

Hi Team, I am trying to get the current webdriver instance in one of the custom keyword which I want to use to get the logs related to that instance.

WebDriver driver = DriverFactory.getWebDriver()
driver.manage().logs().getAvailableLogTypes();

But Katalon is displaying the following error for the above code. I have also set the desired capability for chrome with value w3c=false, still no luck.

Caused by: org.openqa.selenium.UnsupportedCommandException: unknown command: Cannot call non W3C standard command while in W3C mode

My setup details:
Katalon: 7.8.2
Chrome: 87.0.4280.88

Please find the attached screenshot related to the issue and let me know how can I resolve this issue.

This might be a WebDriver issue - try updating them.

Otherwise, …

If you want to see the log file of ChromeDrier, why not you try this:

@kazurayam, thanks for the reply. But that page does not exists.

I have fixed broken links.

@Russ_Thomas, Thank you for the reply. But this didn’t work for me :frowning: Any other suggestions?

just for your interest …