Selenium + Firefox + HTTPS

Good. I know that I am asking a hackneyed, overlay question, but I am posting it because my problem has not been resolved, despite the attempts of all the solutions provided via various links.

My limitation. I do not want to use the saved Firefox profile to save the website certificate.

Selenium Server Version - 2.0b3

We tried the solutions -
1) http://seleniumhq.org/docs/05_selenium_rc.html#handling-https-and-security-popups
Browser panel * firefox
Selen began with the option trustAllSSLCertificates. Did not help. FF again asks to save the certificate.

2) http://blog.mogotest.com/2010/04/13/how-to-accept-self-signed-ssl-certificates-in-selenium/
Browser Launcher * firefoxproxy
Selen started with the trustAllSSLCertificates option. Did not help.

3) Testing with selenium HTTP Trust protocols All certificates that work for FF, but not IE

4) In addition, I tried to create my own cert_override.txt file and fill in 5 fields as described in https://developer.mozilla.org/En/Cert_override.txt , but get the value for the 5th field, which is serial certificate number, and the name of the issuer as a base64 encoded string is not simple, as explained in http://tinyurl.com/ce4vn99 .

5) Remember Firefox http://sejq.blogspot.in/2009/01/remember-certificate-exception.html - , . xpi , , Firefox, , , . . - FULL , !

, , , Firefox. IE Google Chrome.

, , .

+3
4

, , . -

1) xpi https://addons.mozilla.org/en-US/firefox/addon/remember-certificate-exception/

2) , . . (Temp_folder/_)

3) install.rdf em: id node node.

4) , .

5) profile_name/extensions/. extensions.cache/.ini/.rdf . , , , , . 3 , .

script.

#!/bin/bash
mkdir /tmp/addon
cp -r ~/POC/remember_certificate_exception-1.0.0-fx.xpi /tmp/addon
unzip /tmp/addon/remember_certificate_exception-1.0.0-fx.xpi -d /tmp/addon
rm /tmp/addon/remember_certificate_exception-1.0.0-fx.xpi
folder_name=$(cat /tmp/addon/install.rdf | grep -m 1 "<em:id>" | cut -f2 -d ">" | cut -f1 -d "<")
mv /tmp/addon /tmp/$folder_name
cp -r /tmp/$folder_name ~/.mozilla/firefox/*.default/extensions
rm -f ~/.mozilla/firefox/*.default/extensions.
0

.

Sahi? , , , Selenium.

Sahi:

Selenium?

. Sahis . AJAX . XPaths, API, _in _near. Sahi , iframe, , , https-, 401 .. HTML- .

, . , Selenium , Sahi .

, Selenium, , , Selenium, Sahi, , , , , .

ps - , PHP, Mink, Sahi Selenium, script . - , , .

0

, , Selenium HTTPS - . , , , HTTPS. . https://github.com/JeNeSuisPasDave/Selenium-and-TLS

Chrome Firefox Selenium. Chrome , ; Firefox cert8.db .

I think this approach is important because I believe that instructing your test case to ignore certificate errors is unreasonably risky; this may ultimately hide the errors that you want you to be trapped before they are deployed to production.

I wrote a short post about this topic, https://develves.net/blogs/asd/2017-02-20-selenium-and-tls/ , but you really need the repo example linked above.

0
source

All Articles