我正在尝试以编程方式单击“保存”按钮并测试是否出现了 Windows 保存对话框:除了我相信的断言语句之外,我拥有一切。我不知道如何断言我的自定义 SaveDialogBox 出现在用户面前。
[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(); //Clicks my button that should produce a save dialog box.
//assert
//Assert statement to verify that when button was clicked the save dialog box to save the letter in word appears.