Testing WatiN,VBScript

Testing WatiN,VBScript,testing,watin,Testing,Watin,我正在使用我的web测试。在我的一个网页中,我有一个VBScript函数,可以打开一个对话框。我无法使用WatiN访问它 我试着用WatiNTestRecorder;这是不成功的 我也试过: ,再次失败。是否尝试了VbScriptMsgBoxDialogHandler?以身作则 var handler = new VbScriptMsgBoxDialogHandler(buttonToPush); using(new UseDialogOnce(Ie.DialogWatc

我正在使用我的web测试。在我的一个网页中,我有一个VBScript函数,可以打开一个对话框。我无法使用WatiN访问它

我试着用WatiNTestRecorder;这是不成功的

我也试过:
,再次失败。

是否尝试了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");                
    }