示例#1
0
 public DltGroupsAndWorkloadPage SetWorkloadMode(WorkloadMode mode)
 {
     checkWorkLoadMode(mode);
     WaitHelper.Wait(500);
     WorkloadCntrl_btnOk.Click();
     WaitHelper.Wait(1000);
     workload.AcceptAlert();
     return(this);
 }
示例#2
0
        private DltGroupsAndWorkloadPage checkWorkLoadMode(WorkloadMode mode)
        {
            if (mode == WorkloadMode.SimpleByLTByNumber || mode == WorkloadMode.SimpleByLTByPrecentage)
            {
                string     id    = WorkloadMode.SimpleByLT.GetEnumDescription();
                WebElement image = workloadTypeDialog.FindRelative().ById(id);
                image.ClickPerform();
            }

            if (mode == WorkloadMode.ComplexByLTByNumber || mode == WorkloadMode.ComplexByLTByPrecentage)
            {
                string     id    = WorkloadMode.ComplexByLT.GetEnumDescription();
                WebElement image = workloadTypeDialog.FindRelative().ById(id);
                image.ClickPerform();
            }

            WebElement item = workloadTypeDialog.FindRelative().ById(mode.GetEnumDescription());

            item.ClickPerform();

            return(this);
        }