java.lang.NoClassDefFoundError: org/openqa/selenium/federatedcredentialmanagement/HasFederatedCredentialManagement

1,059 views
Skip to first unread message

Suraj Gupta

unread,
Aug 1, 2023, 9:32:26 AM8/1/23
to Selenium Users
Has anyone got this error. How to resolve this?
Disclaimer: This e-mail and any attachments may contain confidential information. If you are not the intended recipient, any disclosure, copying, distribution or use of any information contained herein is strictly prohibited. If you have received this transmission in error, please immediately notify secu...@peoplegrove.com, and destroy the original transmission and any attachments without reading or saving.

⇜Krishnan Mahadevan⇝

unread,
Aug 1, 2023, 9:49:44 AM8/1/23
to seleniu...@googlegroups.com
How about adding a bit more context?

1. Selenium version.
2. Sample code that can be used to reproduce the problem.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribblings @ https://rationaleemotions.com/


On Tue, Aug 1, 2023 at 7:02 PM Suraj Gupta <su...@peoplegrove.com> wrote:
Has anyone got this error. How to resolve this?
Disclaimer: This e-mail and any attachments may contain confidential information. If you are not the intended recipient, any disclosure, copying, distribution or use of any information contained herein is strictly prohibited. If you have received this transmission in error, please immediately notify secu...@peoplegrove.com, and destroy the original transmission and any attachments without reading or saving.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d5814d9f-223e-4a1c-a2da-d9709bc52cd4n%40googlegroups.com.

Suraj Gupta

unread,
Aug 1, 2023, 10:24:24 AM8/1/23
to seleniu...@googlegroups.com
Using selenium 4.9.1

ChromeOptions chromeOptions = new ChromeOptions();

chromeOptions.setBrowserVersion("115");

chromeOptions.setExperimentalOption("excludeSwitches", Collections.singleton("enable-automation"));

//Below two arguments for QnA prompts screen recording.

chromeOptions.addArguments("use-fake-device-for-media-stream");

chromeOptions.addArguments("--remote-allow-origins=*");

chromeOptions.addArguments("--disable-dev-shm-usage");

chromeOptions.addArguments("use-fake-ui-for-media-stream");

chromeOptions.addArguments("--disable-site-isolation-trials"); //To encounter random error : java.lang.Exception: unknown error: cannot determine loading status

chromeOptions.setCapability(CapabilityType.UNHANDLED_PROMPT_BEHAVIOUR, UnexpectedAlertBehaviour.ACCEPT);

HashMap<String, Object> chromePref = new HashMap<>();

chromePref.put("credentials_enable_service", false);

chromePref.put("profile.password_manager_enabled", false);

chromePref.put("download.default_directory", Constants.currentDirectoryPath + "\\downloads");

// chromePref.put("fedcm:accounts", false);

chromeOptions.setExperimentalOption("prefs", chromePref);

driver.set(new ChromeDriver(chromeOptions));

break; And Above code to launch browser


Krishnan Mahadevan

unread,
Aug 1, 2023, 10:29:05 AM8/1/23
to Selenium Users
The latest released version of selenium is 4.11.0. Can you please try using that. If you still face problems, you should also share the dependencies that you are using. Maybe something is messing up the classpath for you.

Suraj Gupta

unread,
Aug 1, 2023, 11:40:05 AM8/1/23
to seleniu...@googlegroups.com
yea I did try that before your message and it worked. seems on chrome end there is some new issue fedCM . I see the same in latest selenium version release notes.
Thanks Krishna

Reply all
Reply to author
Forward
0 new messages