我正在使用WatiN进行网络测试。在我的一个网页中,我有一个打开对话框的VBScript函数。我无法使用WatiN访问它。
我尝试使用WatiNTestRecorder,但没有成功。
我也尝试过这个:http://blogs.dovetailsoftware.com/blogs/kmiller/archive/2008/07/16/scenario-testing-with-watin.aspx,再次失败。
发布于 2009-03-31 15:45:57
你试过VbScriptMsgBoxDialogHandler了吗?下面是一个例子
var handler = new VbScriptMsgBoxDialogHandler(buttonToPush);
using(new UseDialogOnce(Ie.DialogWatcher, handler ))
{
Ie.Button("vbScriptMsgBox").ClickNoWait();
handler.WaitUntilHandled(10);
Assert.That(handler.HasHandledDialog, "Should have handled dialog");
}https://stackoverflow.com/questions/672293
复制相似问题