Example #1
0
        /// <summary>
        /// Disables simulation. You have to be in the tab Simulation to execute this.
        /// </summary>
        /// <returns>
        /// true: if simulation is enabled
        /// false: if an error occurred
        /// </returns>
        public bool DisableSimulation()
        {
            Element simulationCombobox = new FF912Elements().ComboboxSimulate;
            bool    result             = this.SetComboBoxValue(simulationCombobox, "Disabled");

            return(result);
        }
Example #2
0
        /// <summary>
        /// The set simulation value.
        /// </summary>
        /// <param name="state">
        /// The state.
        /// </param>
        /// <returns>
        /// The <see cref="bool"/>.
        /// </returns>
        public bool SetSimulationState(string state)
        {
            Element simulationCombobox = new FF912Elements().ComboboxSimulate;
            bool    result             = this.SetComboBoxValue(simulationCombobox, state);

            return(result);
        }
Example #3
0
        /// <summary>
        /// The get simulation state.
        /// </summary>
        /// <returns>
        /// The <see cref="string"/>.
        /// </returns>
        public string GetSimulationState()
        {
            Element simulationCombobox = new FF912Elements().ComboboxSimulate;
            string  value = this.GetComboBoxValue(simulationCombobox);

            return(value);
        }
Example #4
0
        /// <summary>
        /// Checks whether the FF912 Module is available or not using the tab control element
        /// </summary>
        /// <returns>
        /// true: if the module is available
        /// false: if module is not available
        /// </returns>
        public bool IsFF912ModuleAvailable()
        {
            bool    result     = true;
            Element tabcontrol = new FF912Elements().TabControl;

            if (tabcontrol == null)
            {
                result = false;
                Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "The Tabcontrol is not found. FF912 Module is not available");
            }
            else
            {
                Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "Found Tabcontrol. FF912 Module is available");
            }

            return(result);
        }
Example #5
0
        /// <summary>
        /// Clicks cancel button.
        /// </summary>
        /// <returns>
        /// True: if button was clicked
        /// False: if an error occurred
        /// </returns>
        public bool ClickCancelButton()
        {
            bool    result = true;
            Element button = new FF912Elements().CancelButton;

            if (button == null || button.Enabled == false)
            {
                result = false;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "The cancel button is null or not enabled");
            }
            else
            {
                Mouse.MoveTo(button, 500);
                Mouse.Click(button);
                Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "Clicked on Cancel");
            }

            return(result);
        }