使用Selenium IDE处理FireFox中的安全警告弹出窗口 [英] Handle Securtiy Warning pop-up in FireFox with Selenium IDE

查看:189
本文介绍了使用Selenium IDE处理FireFox中的安全警告弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Selenium IDE 2.5.0.

I am using Selenium IDE 2.5.0.

使用Firefox 23.0.1时,它将显示带有继续"的安全警告"弹出窗口和取消"选项.一旦显示此弹出窗口,就不允许选择任何内容或查看源文件,然后单击继续"和取消"

When used Firefox 23.0.1, it displays "Security Warning" popup window with "Continue" and "Cancel" option. Once this popup window displays it does not allow to select anything or view source file before clicking either "Continue" and "Cancel"

我尝试了所有提到的解决方案,例如,about:config,但没有安全性.提到的列表中没有警告.

I tried all the mentioned solutions like, about:config but there is no security.warn in the list mentioned.

我还尝试禁用安全性"选项卡/设置"按钮中的所有警告(警告消息)

I also tried to disable all warnings in security tab/settings button(warning messages)

有人建议模仿'Enter'键,但是我无法选择如何查看弹出窗口的名称查看源文件.

Some one suggested the emulate the 'Enter' key but I could not get the option on how to view pop-up window name as I can't view the source files.

您能帮忙解决此问题吗?

Can you help on how to work around on this?

我为此挣扎了两个多星期.

I am struggeling for more than two weeks with this.

谢谢您的建议

授予

推荐答案

chooseOkOnNextConfirmation

不是为你工作吗?

chooseOkOnNextConfirmation()

chooseOkOnNextConfirmation()

撤消调用chooseCancelOnNextConfirmation的效果.请注意,Selenium覆盖的window.confirm()函数通常会自动返回true,就像用户手动单击确定"一样,因此除非出于某种原因,否则您不需要使用此命令在下一次确认之前改变主意.在任何之后确认后,Selenium将恢复使用默认行为以后的确认,除非/直到自动返回true(确定)您为每个显式调用selectCancelOnNextConfirmation确认.

Undo the effect of calling chooseCancelOnNextConfirmation. Note that Selenium's overridden window.confirm() function will normally automatically return true, as if the user had manually clicked OK, so you shouldn't need to use this command unless for some reason you need to change your mind prior to the next confirmation. After any confirmation, Selenium will resume using the default behavior for future confirmations, automatically returning true (OK) unless/until you explicitly call chooseCancelOnNextConfirmation for each confirmation.

请注意-每次出现确认时,您都必须将其与相应的getConfirmation一起使用,否则使用下一个硒操作将失败.

Take note - every time a confirmation comes up, you must consume it with a corresponding getConfirmation, or else the next selenium operation will fail.

chooseCancelOnNextConfirmation也是一个选项

chooseCancelOnNextConfirmation is also an option

这篇关于使用Selenium IDE处理FireFox中的安全警告弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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