diff --git a/src/Samples.UITest/Writer.Test/Tests/WriterTest.cs b/src/Samples.UITest/Writer.Test/Tests/WriterTest.cs index 206f3768..0524b895 100644 --- a/src/Samples.UITest/Writer.Test/Tests/WriterTest.cs +++ b/src/Samples.UITest/Writer.Test/Tests/WriterTest.cs @@ -113,7 +113,8 @@ public void NewSaveRestartOpenChangeAskToSave() saveFileDialog.FileNameBox.EditableText = fileName; Capture.Screen().ToFile(GetScreenshotFile("FullSaveScreen.png")); saveFileDialog.CaptureToFile(GetScreenshotFile("SaveFileDialog.png")); - saveFileDialog.SaveButton.Click(); + saveFileDialog.SaveButton.CaptureToFile("SaveButton.png"); + saveFileDialog.SaveButton.Invoke(); Capture.Screen().ToFile(GetScreenshotFile("AfterSaveFile.png")); fileRibbonMenu.MenuButton.Click();