Getting Your connection is not secure with marionette firefox selenium 3.0 grid

290 views
Skip to first unread message

shankar KC

unread,
Dec 6, 2016, 12:30:58 AM12/6/16
to Selenium Users
I have updated the web driver to selenium 3.0.1 When i use firefox browser and try to open the https website I get Your connection is not secure exception. With selenium 2.53.1 web driver below code was working fine.



DesiredCapabilities caps = new DesiredCapabilities(); caps.setCapability("acceptSslCerts", "true"); driver = new RemoteWebDriver(new URL(hubUrl), caps);



I have updated the web driver to selenium 3.0.1 When i use firefox browser and try to open the https website I get Your connection is not secure exception. With selenium 2.53.1 web driver below code was working fine.

DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("acceptSslCerts", "true");
driver = new RemoteWebDriver(new URL(hubUrl), caps);

As selenium 3.0.1 uses marionette to run latest firefox browsers i tried below 2 code. but both did NOT work


1.

        FirefoxProfile profile = new FirefoxProfile();
        profile.setPreference("acceptSslCerts", "true");
        caps = DesiredCapabilities.firefox();
        caps.setCapability("marionette", true);
        caps.setCapability(FirefoxDriver.PROFILE, profile);
        driver = new RemoteWebDriver(new URL(hubUrl), caps);

2.

caps = DesiredCapabilities.firefox(); caps.setCapability("marionette", true); caps.setCapability("acceptSslCerts", "true") driver = new RemoteWebDriver(new URL(hubUrl), caps);

When the grid nodes try to open HTTPS connection it shows "YOUR CONNECTION IS NOT SECURE" MESSAGE and quits.

Non marionette firefox was working fine earlier. Its not clear how to handle this in new selenium/firefoxAnyone tried to access https websites using seleniumGrid/selenium 3.0/marionette Can someone point-out how to overcome this issue. I have multiple selenium grids with 20+nodes. Installing the certificate on each is not feasible. I this we need a proper solution to this when used.
I posted question in stackoverflow too http://stackoverflow.com/questions/40909275/getting-your-connection-is-not-secure-with-marionette-firefox-selenium-3-0-grid . But didnt get any answers
Any pointers to fix the issue highly appreciated.
Thanks
Shankar KC

Ahmet OZKESEK

unread,
Dec 6, 2016, 3:05:53 PM12/6/16
to Selenium Users
Hi,

One option is maybe,

- learn more info by clicking the advanced button on error dialog,
- goto firefox support/help, check how to handle that error,
- if can not handle, then is it possible to bypass by adding an exception for the server you tested into the firefox settings -> advanced -> certificates -> view certificates -> servers 
Reply all
Reply to author
Forward
0 new messages