问题描述
我使用Selenium来测试我的网站。网站需要访问外部目录以从其中选择一些项目。问题是此目录是在另一个使用HTTPS协议的域上发布的。我搜索并阅读了许多关于Selenium和跨域问题的互联网上的主题,但我仍然没有找到答案。一些话题说,* iehta浏览器将克服这个问题,但实际上它不能这样做。我也尝试* iexplore,* iexploreproxy,* firefox,* firefoxproxy以及,但结果是一样的。
* iexplore(HTA模式)和* firefox(chrome模式)发射器将工作正常。 * googlechrome将在即将到来的2.0版本中工作。至于使SSL工作的机制,以下文章可能有帮助:
I use Selenium to test my website. The website need to access an external catalog to select some items from it. The problem is this catalog is published on another domain with HTTPS protocol. I've searched and read many topics on the internet about Selenium and Cross domain problems, but I still don't find the answer yet. Some topics said that the *iehta browser will overcome this issue, but in fact it could not do that. I also try *iexplore, *iexploreproxy, *firefox, *firefoxproxy as well, but the results are the same. Could you please give me the solution for this problem?
Thanks in advance!
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
这篇关于Selenium - 跨域和HTTPS问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!