public static void SaveFileDialogFileOwerride(string title, bool rejectOverride = false) { var fileOwerride = FormController.Catch(title); //"DirectUIHWND/CtrlNotifySink/Button"; //owerride file logic }
public static void OpenFileDialog(string title, string file) { var opnFileDialog = FormController.Catch(title); opnFileDialog .CatchControl("ComboBoxEx32") .SendText(file); opnFileDialog .CatchControl("Button") .SendClick(); }
public static void SaveFileDialog(string title, string file) { var opnFileDialog = FormController.Catch(title); opnFileDialog .CatchControlByPath("DUIViewWndClassName/DirectUIHWND/FloatNotifySink/ComboBox") .SendText(file); opnFileDialog .CatchControl("Button") .SendClick(); }
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(); }