Firefox Error: “Your connection is not secure” while launching driver with Selenium 3.0.1 using Java

0 votes

My Firefox version is 46.0.1 and Selenium version is 3.0.1. I am getting error:

Your connection is not secure

while executing following code:

    @Test
public void test() {
    ProfilesIni profile = new ProfilesIni();
    FirefoxProfile ffProfile = profile.getProfile("newCretedProfile");
    ffProfile.setAcceptUntrustedCertificates(true);
    ffProfile.setAssumeUntrustedCertificateIssuer(false);
    System.setProperty("webdriver.gecko.driver", "D:\\SELENUIUM\\Drivers\\geckodriver.exe");
    FirefoxDriver driver = new FirefoxDriver(ffProfile);
    driver.get("http://www.google.com");
    driver.quit();
}

It's not working and giving me the same error while I am launching any site.

Sep 17, 2018 in Selenium by Atul
• 10,240 points
404 views

1 answer to this question.

0 votes

Download Firefox 55 beta and set

capabilities.setCapability("acceptInsecureCerts", true);

Here is my code that works for Firefox 55 beta:

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setBrowserName("firefox");
capabilities.setCapability("acceptInsecureCerts", true);
RemoteWebDriver driver = new RemoteWebDriver(Environment.remoteWebDriverURL, capabilities);
answered Sep 17, 2018 by Meci Matt
• 9,420 points

Related Questions In Selenium

0 votes
1 answer

Which Firefox version is compatible with Selenium 3.6.0

You would need to use GeckoDriver if ...READ MORE

answered Apr 17, 2018 in Selenium by king_kenny
• 3,650 points
416 views
0 votes
1 answer

Firefox browser not opening with given URL using Selenium Webdriver with Java

Download the latest selenium jar and replace ...READ MORE

answered Apr 30, 2018 in Selenium by Samarpit
• 5,130 points
3,225 views
0 votes
1 answer
0 votes
1 answer

Selenium IDE (2.9.1.1-signed) not working with latest Version of Firefox

Unfortunately, Selenium IDE will be deprecated soon. ...READ MORE

answered Mar 30, 2018 in Selenium by nsv999
• 5,110 points

edited Apr 4, 2018 by nsv999 3,465 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,110 points
1,007 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
1,153 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
892 views
0 votes
1 answer

To check that the web page is loaded or not using Selenium Web Driver?

The solution is using Implicit Wait which ...READ MORE

answered May 24, 2018 in Selenium by Meci Matt
• 9,420 points
6,136 views
0 votes
1 answer

Which Firefox version is compatible with Selenium 2.53.0?

I had the similar problem. For me, ...READ MORE

answered Jun 26, 2018 in Selenium by Meci Matt
• 9,420 points
833 views