Your connection is not secure firefox fix

broken image

Try 2: FirefoxProfile profile = new FirefoxProfile('AutomationTestsProfile') Try 1: FirefoxProfile profile = new FirefoxProfileManager().GetProfile('AutomationTestsProfile') Second, I create new FF profile ('AutomationTestsProfile') I thought that it is same issue, but I need solution for C#, I try match your JAVA code to my above codeįirst, I changed to TRUE the below statment: profile.AssumeUntrustedCertificateIssuer = true Note 1: To anyone who has marked my question as a duplicate of this question:įirefox selenium webdriver gives “Insecure Connection” Profile.AssumeUntrustedCertificateIssuer = false ĭriver = new FirefoxDriver(FirefoxDriverService.CreateDefaultService(), options, TimeSpan.FromSeconds(5)) ĭrivers.Add((), driver) Profile.AcceptUntrustedCertificates = true My code is: FirefoxOptions options = new FirefoxOptions() įirefoxProfile profile = new FirefoxProfile() Still, when the selenium loading Firfox browser, I see the page: 'Your connection is not secure'. Nor is it the solution of using Nightly FireFox. Selenium Why setting acceptuntrustedcertificates to true for firefox driver doesn't work?īut they did not help me solve the problem I tried to exercise all solutions from below question:

broken image

All solutions I found on stackoverflow are out of date or doesn't work. I'm writing tests with Selenium + C# and I face an important issue because I didn't found solution when I test my site with secure connection ( HTTPS).