身份验证后,页面无法加载到Firefox [英] Page Not Loading in Firefox after Authentication
问题描述
我使用Firefox v33.1,IE 10和Chrome v38。最后,我应该注意到,这与我的自动证书选择过程无关,因为即使我只有Selenium Webdriver打开一个Firefox驱动程序,然后停下来,然后我自己选择证书并单击确定,它仍然会同样的事情。
我认为Selenium Webdriver可能会在Firefox驱动程序中内建一些烦人的警卫,它会阻止它加载需要验证的页面。如果是这样的话,有没有人知道如何禁用?
在Firefox附加组件下 - >插件。在它被设置为询问激活之前,但是在我选择证书之后从未明确要求激活,因此页面不会加载。I have written Java code using Selenium Webdriver and AutoIt that opens a Firefox driver, navigates to a page that requires authentication via selection of a soft certificate, selects the appropriate certificate when the Certificate Selection window pops up, and clicks OK, at which point the page I'm accessing should load but instead it just loads a blank "New Tab"; a new tab isn't opened per se, just the current tab remains blank with the title of "New Tab".
If I perform this process manually (without having Selenium Webdriver open a Firefox driver and I just launch it myself) using the same exact Firefox profile, the page loads after authentication just fine. I should also note that the page loads successfully using driver instances of Internet Explorer and Chrome.
I am using Firefox v33.1, IE 10, and Chrome v38. Finally, I should note that this has nothing to do with my automated certificate selection process because even if I only have Selenium Webdriver open a Firefox driver and stop there and then I take the wheel and select the certificate myself and click OK, it still does the same thing.
I think Selenium Webdriver might have some annoying guard built into the Firefox drivers it instantiates that prevents it from loading pages requiring authentication. If this is the case, does anyone know how to possibly disable that?
Java needed to be set to "Always Activate" under the Firefox Add-ons -> Plugins. Before it was set to "Ask to Activate" but it never explicitly asked to activate after I selected the certificate, thus the page wouldn't load.
这篇关于身份验证后,页面无法加载到Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!