TestProject Forum

Failure in Windows Agent with ChromeDriver and LoggingPreferences

In Java

ChromeOptions options = new ChromeOptions();
LoggingPreferences prefs = new LoggingPreferences();
prefs.enable(LogType.PERFORMANCE, Level.INFO);
options.setCapability(CapabilityType.LOGGING_PREFS, prefs);

Then, the agent will return HTTP 500 with this error
class java.util.LinkedHashMap cannot be cast to class java.lang.String (java.util.LinkedHashMap and java.lang.String are in module java.base of loader ‘bootstrap’)

See screenshot in postman

This is a known issue, it is resolved in Agent 0.66.0 that should be released today.

I will ping another comment in here when 0.66.0 is available for downloading.

1 Like