身份验证后,页面无法加载到Firefox [英] Page Not Loading in Firefox after Authentication

查看:143
本文介绍了身份验证后,页面无法加载到Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Selenium Webdriver和AutoIt编写了Java代码,打开Firefox驱动程序,导航到需要通过选择软证书进行身份验证的页面,在弹出证书选择窗口时选择适当的证书,然后单击确定哪一点我正在访问的页面应该加载,但相反,它只是加载一个空白的新标签;一个新的选项卡本身并不打开,只是当前选项卡保持空白,标题为新选项卡。如果我使用相同的Firefox配置文件手动执行此过程(没有Selenium Webdriver打开Firefox驱动程序并且我自己启动它),那么在认证之后加载页面精细。我还应该注意到,使用Internet Explorer和Chrome的驱动程序实例成功加载页面。

我使用Firefox v33.1,IE 10和Chrome v38。最后,我应该注意到,这与我的自动证书选择过程无关,因为即使我只有Selenium Webdriver打开一个Firefox驱动程序,然后停下来,然后我自己选择证书并单击确定,它仍然会同样的事情。

我认为Selenium Webdriver可能会在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆