Selenium - Cross domain and HTTPS problem

余生颓废 提交于 2019-12-05 19:49:18

I've used the -trustAllSSLCertificates option with success.

Go to the site first with a normal IE connection, you get the message:

There is a problem with this website's security certificate.

Then:

Click Continue to this website (not recommended).

You'll see there's a red "Certificate Error" box at the top of the browser.

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

Now run Selenium with the -trustAllSSLCertificates option and you are away.

The *iexplore (HTA mode) and *firefox (chrome mode) launchers will work just fine. *googlechrome will work in the forthcoming 2.0 release. As for the mechanics of making SSL work, the following article may help:

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!