/// <summary> /// The get simulation area diagnostic event simulation. /// </summary> /// <returns> /// The <see cref="string"/>. /// </returns> public string GetSimulationAreaDiagnosticEventSimulation() { Text text = new NE107Elements().SimulationComboBox; if (text != null) { text.MoveTo(500); Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), string.Format("Active diagnostic event simulation is [{0}]", text.TextValue)); return(text.TextValue); } return(null); }
/// <summary> /// The set diagnostic event category. Use this form diagnosticEvent//diagnosticCategory /// </summary> /// <param name="pathToDiagnosticEventRadioButton"> /// The path to diagnostic event radio button. /// <para>diagnosticEvent: could be any of the events listed on selected tab; must be written as displayed</para> /// <para>diagnosticCategory: Failure or Function check or Out of specification or Maintenance required or No effect</para> /// </param> /// <returns> /// The <see cref="bool"/>. /// </returns> public bool SetActiveDiagnosticEventCategory(string pathToDiagnosticEventRadioButton) { Ranorex.RadioButton radioButton = new NE107Elements().EventRadioButton(pathToDiagnosticEventRadioButton); if (radioButton != null) { radioButton.MoveTo(500); if (!radioButton.Checked) { radioButton.Click(); this.ClickApplyButton(); } return(true); } return(false); }