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.
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
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLk9hAWhUsMJYv%3Ddk5JGGjJU_eYBaLCrcNmDdVGH5XAUTA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f4f5decd-c74e-4198-b1b6-13e6df9761f9n%40googlegroups.com.