Exemple #1
0
        /// <summary>
        /// Click display step button
        /// </summary>
        /// <param name="step">enum</param>
        public void ClickDisplayStep(DisplayStep step)
        {
            switch (step)
            {
            case DisplayStep.Min:
                //click "Raw" step
                EnergyDisplayStepMinButton.Click();
                break;

            case DisplayStep.Hour:
                //click "Hourly" step
                EnergyDisplayStepHourButton.Click();
                break;

            case DisplayStep.Day:
                //click "Daily" step
                EnergyDisplayStepDayButton.Click();
                break;

            case DisplayStep.Week:
                //click "Weekly" step
                EnergyDisplayStepWeekButton.Click();
                break;

            case DisplayStep.Month:
                //click "Monthly" step
                EnergyDisplayStepMonthButton.Click();
                break;

            case DisplayStep.Year:
                //click "Year" step
                EnergyDisplayStepYearButton.Click();
                break;

            default:
                break;
            }
        }