Using NUnit Testing How Can I test that a Save Dialog Box was displayed on the screen?

Posted by user512915 on Stack Overflow See other posts from Stack Overflow or by user512915
Published on 2012-09-04T21:36:04Z Indexed on 2012/09/04 21:37 UTC
Read the original article Hit count: 141

Filed under:
|

I am trying to programatically click the "save" button and test that the windows Save Dialog box appears: I have everything but the assert statement I believe. I don't know how to assert that my custom SaveDialogBox appears to the user.

[test]
public void Method_WhenThePersonIsNotfound_ClickingTheButtonSavesLetterToWordDocument
{
     //arrange
     CreateNewPage(); //creates IE window enters fields and clicks submit on first page.
     //act
     this.InternetExplorerDriver.FindElementById("SaveForm").Click();

     //assert
     //Assert statement to verify that when button was clicked the save dialog box to save the letter in word appears.

© Stack Overflow or respective owner

Related posts about c#

Related posts about nunit