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();
}
I have created new firefox profile and followed steps from this url
Nevertheless it's not working and giving me same error while I launching any site.
If you want to run the tests on Firefox with Selenium 3.0 set the Firefox driver capability “marionette” to false.
With FF v53+ and Se 3.x (summer 2017), advice from before (May?) 2017 is no longer true.
You have to use Marionette and set capability to True.
Took me few days to sort out all old and obsolete advice, yours for free. :-)
Download Firefox 55 beta and set
Here is my code that works for Firefox 55 beta:
Looks like it is not supported yet by geckodriver/Marionette.
You can check below bugs for more information:-
https://github.com/mozilla/geckodriver/issues/93
https://bugzilla.mozilla.org/show_bug.cgi?id=1103196
I have tried this approach and it worked well for me.
Create new firefox profile by following below step.
Now use the newly created firefox profile to run your selenium test. Modify below code as per your requirement.