IE and FF do not have ignore certificate error option #3767

Closed
lukeis opened this Issue Mar 3, 2016 · 5 comments

Comments

Projects
None yet
1 participant
Owner

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 3767

This is an enhancement request (not sure if there is a seperate place to log this)

Firefox and IE do not seem to have an option to ignore security warnings like chrome
does. Or if they do, they lack documentation on it. I am looking for the equivalent
of chrome's "chromeOptions.AddArguments("ignore-certificate-errors");" in IE and FF

Selenium version: 2.20
OS: Windows 7
Browser: IE or FF
Browser version: IE9 and FF11 

Reported by eric.petrowiak on 2012-04-20 19:44:25

Owner

lukeis commented Mar 3, 2016

For FF you can do this through the FireoxProfile class.

FirefoxProfile profile = new FirefoxProfile();
profile.setAcceptUntrustedCertificates(true);  // NOTE: this is the default behavior
WebDriver driver = new FirefoxDriver(profile);

I believe the IEDriver is also configured to accept untrusted certs by default.

Reported by jmleyba on 2012-04-21 16:02:03

  • Labels added: Type-Enhancement, Component-WebDriver
  • Labels removed: Type-Defect
Owner

lukeis commented Mar 3, 2016

No, jmleyba. IEDriver still not ignore certificate error. 

I'm using RemoteDriver start IEDriver. version: 2.21 ie: 8

If you try click on the "temp accept certificate" (By.Id("overridelink")),IEDriver
will fails to find it. And you can't using any type of find element function or exec
js to find that link.


Reported by mudengke on 2012-04-27 05:09:01

@lukeis lukeis self-assigned this Mar 3, 2016

Owner

lukeis commented Mar 3, 2016

thank you jmle...@gmail.com. 
I used to rely on the Remember Certificate Exception plug in for a while on Firefox
with Selenium RC and then later on Selenium Webdriver. Everything was working fine
until the latest FF release of 15 and 16 and my scripts stopped working and I started
having problem with my add on's staying plugged consistently. Turns out, when I went
to the add on home page (https://addons.mozilla.org/en-us/firefox/addon/remember-certificate-exception/eula/84167?src=dp-btn-primary
) for Remember Certificate Exception, in bold red text, they indicate: "Not available
for Firefox 15.0.1 "

I am so elated that WebDriver handles profile and security exceptions with ease. Thanks
so much!

Reported by b.cutkelv on 2012-10-30 00:50:24

Owner

lukeis commented Mar 3, 2016

For Chrome solution is available.
For FF it's already implemented.
For IE issue #2381 is already existed.
For Safari another issue is existed.

Closed as duplicate.

Reported by a.u.savchuk on 2013-05-02 09:33:01

  • Status changed: Duplicate
  • Merged into: #2381
Owner

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:15:16

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this Mar 3, 2016

@lukeis lukeis locked and limited conversation to collaborators Mar 4, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.