Guest User

Untitled

a guest
Jun 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. var handler = new VbScriptMsgBoxDialogHandler(buttonToPush);
  2. using(new UseDialogOnce(Ie.DialogWatcher, handler ))
  3. {
  4. Ie.Button("vbScriptMsgBox").ClickNoWait();
  5. handler.WaitUntilHandled(10);
  6.  
  7. Assert.That(handler.HasHandledDialog, "Should have handled dialog");
  8. }
Add Comment
Please, Sign In to add comment