I am using Serenity BDD and I needed to Launch Firefox Browser with a custom profile bacause i wanted to store certs into that profile. So, i wont have any issue with Auth. However, I have added below codes to use custom Firefox Profile.
String filePath = System.getProperty("user.dir")+"/firefoxprofile";
Log.info("Firefox profile Path:"+ filePath);
File firefoxProfileFolder = new File(filePath);
FirefoxProfile firefoxProfile = new FirefoxProfile(firefoxProfileFolder);
firefoxProfile.setAcceptUntrustedCertificates(true);
Serenity.useFirefoxProfile(firefoxProfile);
Log.info("Using User profile: " + Serenity.getFirefoxProfile().getClass().getSimpleName());
loginPage.open();
Serenity conf file i have added below:
webdriver.capabilities.acceptInsecureCerts=true
As well i have created a Firefox Profile where i added the root Directory to the Automation Repo "firefoxprofile" folder.
While i am executing the tests using maven command. Actually, Firefox is not using the custom profile. While it launches, I went to help > Troubleshoot > Verified the profile path which doesn't match with my provided path. How can i resolve this issue? Serenity needed to use Custom Profile which i have created.