public void OpenFileDialogTest() { Process.Start("notepad.exe"); var form = FormController .Catch("Untitled - Notepad") .SetForeground(); form.SetForeground().SendKeys("^o");//Ctrl + O Thread.Sleep(5000); DialogsEn.OpenFileDialog(@"d:\test.txt"); Thread.Sleep(5000); form.CloseWindow(); }
public void SaveFileDialogTest() { Process.Start("notepad.exe"); var form = FormController .Catch("Untitled - Notepad") .SetForeground(); form.CatchControl("Edit") .SendText("This is the new Text!!!"); form.SetForeground().SendKeys("^s");//Ctrl + S DialogsEn.SaveFileDialog(@"d:\test.txt"); Thread.Sleep(5000); form.CloseWindow(); }