Problems with DriverFactory


Getting FAILED because (of) Unable to open browser (Root cause: java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.openqa.selenium.logging.LoggingPreferences)

Why might this be the case?
Thanks!

Capture2.PNG

FYI: If you’re using Firefox it will not work. https://bugzilla.mozilla.org/show_bug.cgi?id=1453962

However, looking at the screenshot you pasted into your message, you are missing an import for DriverFactory.

Thanks for your reply. It would seem this was because of the desired capabilities. I’m trying to set the desired capabilities in Katalon rather than using selenium. Under the Chrome desired capabilities I made loggingPrefs with the list ["–enable-logging", “–log-level”] which is why I got a cast exception. I’m still having trouble setting the logging preferences for chrome.

Sorry Bella, I can’t help further.

@Vinh Nguyen I think we need forum just for Desired Caps…

1 Like