/// <summary>
        /// Closes a dialog
        /// </summary>
        /// <returns>
        ///     <br>True: if the dialog was successfully closed</br>
        ///     <br>False: if the dialog is still open</br>
        /// </returns>
        public bool Run()
        {
            var dialogMessage = new GUI.FFH1CommDTMRepoElements().DialogMessageBox;
            var buttonOk      = new GUI.FFH1CommDTMRepoElements().DialogButtonOK;
            var click         = new Functions.ApplicationArea.Execution.PressButton();
            var watch         = new Stopwatch();

            // log the dialog message
            Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), dialogMessage.TextValue);

            // close the dialog
            click.Run(buttonOk);

            // check if pop up is closed
            watch.Start();
            bool visible = buttonOk.Visible;

            while (!visible)
            {
                if (watch.ElapsedMilliseconds <= 30000)
                {
                    return(false);
                }

                visible = buttonOk.Visible;
            }

            watch.Stop();
            return(true);
        }
        /// <summary>
        /// Clicks the Defaults button
        /// </summary>
        public bool Run()
        {
            var pressButton = new Functions.ApplicationArea.Execution.PressButton();

            Button button = new GUI.ProfIdtmDpv1RepoElements().ButtonDefaults;

            return(pressButton.Run(button));
        }
        /// <summary>
        /// Clicks the OK button
        /// </summary>
        public bool Run()
        {
            var pressButton = new Functions.ApplicationArea.Execution.PressButton();

            Button button = new GUI.FFH1CommDTMRepoElements().ButtonOK;

            return(pressButton.Run(button));
        }
        /// <summary>
        /// Clicks the cancel button
        /// </summary>
        public void Run()
        {
            var pressButton = new Functions.ApplicationArea.Execution.PressButton();

            Button button = new GUI.FFH1CommDTMRepoElements().ButtonCancel;

            pressButton.Run(button);
        }
Beispiel #5
0
        /// <summary>
        /// Clicks the cancel button
        /// </summary>
        public bool Run()
        {
            var pressButton = new Functions.ApplicationArea.Execution.PressButton();

            Button button = new GUI.HARTCommRepoElements().ButtonCancel;

            return(pressButton.Run(button));
        }
Beispiel #6
0
        /// <summary>
        /// Clicks the button apply
        /// </summary>
        public bool Run()
        {
            var clickButton = new Functions.ApplicationArea.Execution.PressButton();

            return(clickButton.Run(new GUI.RSG45HARTCommRepoElements().ButtonApply));
        }