Example #1
0
        public static void SaveFileDialogFileOwerride(string title, bool rejectOverride = false)
        {
            var fileOwerride = FormController.Catch(title);

            //"DirectUIHWND/CtrlNotifySink/Button";

            //owerride file logic
        }
Example #2
0
        public static void OpenFileDialog(string title, string file)
        {
            var opnFileDialog = FormController.Catch(title);

            opnFileDialog
            .CatchControl("ComboBoxEx32")
            .SendText(file);

            opnFileDialog
            .CatchControl("Button")
            .SendClick();
        }
Example #3
0
        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();
        }
Example #4
0
        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();
        }
Example #5
0
        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();
        }