Selenium - cross-domain and HTTPS issue

I use Selenium to test my site. A website must access an external directory in order to select some items from it. The problem is that this directory is published to a different domain with the HTTPS protocol. I searched and read many topics on the Internet about Selenium and Cross domain issues, but have not yet found an answer. Some topics say that the * iehta browser will overcome this problem, but in reality it cannot do this. I also try * iexplore, * iexploreproxy, * firefox, * firefoxproxy, but the results are the same. Could you give me a solution to this problem?

Thanks in advance!

+3
source share
2 answers

Launchers * iexplore (HTA mode) and * firefox (chrome mode) will work fine. * googlechrome will work in the upcoming version 2.0. Regarding the mechanics of SSL, the following article may help:

http://mogotest.com/blog/2010/04/13/how-to-accept-self-signed-ssl-certificates-in-selenium

+2
source

I have successfully used the -trustAllSSLCertificates parameter.

First go to the site with a normal IE connection, you will receive a message:

The problem with the website security certificate.

Then:

Click Continue on this website (not recommended).

You will see a red “Certificate Error” at the top of the browser there.

Click this, click View Cetificates, then Add and add the certificate to the Trusted Root Certification Authorities. Similar screenshots for this process are in the "mogotest" link in the previous answer.

Now run selenium with the -trustAllSSLCertificates parameter and you will leave.

+2
source

All Articles