Watin 的 LogonDialogHandler 不适用于 Firefox 3.6 [英] Watin's LogonDialogHandler not working for Firefox 3.6

查看:36
本文介绍了Watin 的 LogonDialogHandler 不适用于 Firefox 3.6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 WatiN 为网站编写自动化脚本.当我浏览到特定的 url 时,会弹出一个身份验证对话框.我有以下代码来处理对话框.这段代码基本进入指定的

I'm writing automation scripts for a website using WatiN. when I browse to a particular url, a authentication dialog pops up. I have following code to handle the dialog. This code basically enters the specified

// Create a logon dialog handler
LogonDialogHandler ldh = new LogonDialogHandler(user, password);
browser.DialogWatcher.Add(ldh); 
browser.GoTo("URL that pops up the authentication dialog");

现在这在 IE 中工作得很好.但是在 Firefox 中,会出现该对话框,之后没有任何反应.(他们的文本框中没有输入用户名或密码)

Now this works just fine in IE. But in Firefox, the dialog appears and nothing happens after that. (No username or password entered in their text boxes)

知道这里出了什么问题吗?

Any idea what's going wrong here?

推荐答案

很抱歉,WatiN 目前(WatiN 2.1 及更低版本)不支持 firefox 弹出窗口/对话框的自动化.它可能可以完成,但这在我的优先事项列表中并不高.

I'm sorry but the automation of firefox popups/dialogs is not supported by WatiN at this moment (WatiN 2.1 and lower). It probably can be done but this is not high on my priority list.

这篇关于Watin 的 LogonDialogHandler 不适用于 Firefox 3.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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