示例#1
0
        public void AddPropertyCriteria(string property, string value, int rowIndex = -1, bool getLastRow = false)
        {
            var row = new StateTransitionTableRowValues(rowIndex, getLastRow);

            row.LnkPropertiesCriteria.Click();
            var popup = new EvaluateProperties();

            popup.SwitchTo();
            popup.AddTransitionCriterion(property, value);
            popup.SwitchBackToParent();
        }
示例#2
0
        public void SetPostProcessingScript(string script, int rowIndex = -1, bool getLastRow = false)
        {
            var row = new StateTransitionTableRowValues(rowIndex, getLastRow);

            row.LnkPostProcessingScript.Click();
            var popup = new WorkflowScriptEditor();

            popup.SwitchTo();
            popup.TxtScript.Value = script;
            popup.BtnOk.Click();
            popup.SwitchBackToParent();
        }
示例#3
0
        public void Edit(string currentState, string nextState,
                         StateTransitionVersionIncrementAction versionIncrementAction = StateTransitionVersionIncrementAction.None,
                         string description = "", int rowIndex = -1, bool getLastRow = false)
        {
            var row = new StateTransitionTableRowValues(rowIndex, getLastRow);

            row.LnkCurrentState.Click();
            var popup = new ProjectStateTransitionPropertiesPopup();

            popup.SwitchTo();
            popup.FillPropertiesPopup(currentState, nextState, versionIncrementAction, description);
            popup.SwitchBackToParent();
        }
示例#4
0
        public void AddChangeProperty(string property, string value, int rowIndex = -1, bool getLastRow = false)
        {
            var row = new StateTransitionTableRowValues(rowIndex, getLastRow);

            row.LnkChangeProperties.Click();
            var popup = new ChangeProperties();

            popup.SwitchTo();
            popup.AddChangeProperties(property, value);
            popup.SwitchBackToParent();
            Thread.Sleep(1500);
            WaitForPageLoad();
        }
示例#5
0
        public IEnumerable <String> GetChangeProperty(int rowIndex = -1, bool getLastRow = false)
        {
            var row = new StateTransitionTableRowValues(rowIndex, getLastRow);

            row.LnkChangeProperties.Click();
            var popup = new ChangeProperties();

            popup.SwitchTo();
            var returnValue = popup.SelCriteriaBox.GetOptionsText();

            popup.BtnSave.Click();
            popup.SwitchBackToParent();
            return(returnValue);
        }
示例#6
0
        public string GetPreProcessingScript(int rowIndex = -1, bool getLastRow = false)
        {
            var row = new StateTransitionTableRowValues(rowIndex, getLastRow);

            row.LnkPreProcessingScript.Click();
            var popup = new WorkflowScriptEditor();

            popup.SwitchTo();
            var returnValue = popup.TxtScript.Value;

            popup.BtnOk.Click();
            popup.SwitchBackToParent();
            return(returnValue);
        }
示例#7
0
        public bool AreActivitiesSelectedAsCriteria(IEnumerable <string> activities, int rowIndex = -1, bool getLastRow = false)
        {
            var row = new StateTransitionTableRowValues(rowIndex, getLastRow);

            row.LnkActivityCriteria.Click();
            var popup = new StateTransitionActivityCriteriaPopup();

            popup.SwitchTo();
            var returnValue = activities
                              .Select(activity => new Checkbox(By.XPath("//span[text()='" + activity + "']/../../td[1]/input[@type='checkbox']")))
                              .All(checkbox => checkbox.Checked);

            popup.BtnCancel.Click();
            popup.SwitchBackToParent();
            return(returnValue);
        }
示例#8
0
        public void ClearActivityCriteria(IEnumerable <string> activities, int rowIndex = -1, bool getLastRow = false)
        {
            var row = new StateTransitionTableRowValues(rowIndex, getLastRow);

            row.LnkActivityCriteria.Click();
            var popup = new StateTransitionActivityCriteriaPopup();

            popup.SwitchTo();
            var checkboxes = activities
                             .Select(activity => new Checkbox(By.XPath("//span[text()='" + activity + "']/../../td[1]/input[@type='checkbox']")))
                             .Where(checkbox => checkbox.Checked);

            foreach (var checkbox in checkboxes)
            {
                checkbox.Click();
            }
            popup.BtnOk.Click();
            popup.SwitchBackToParent();
        }
 public void SetScriptCriteria(string script, int rowIndex = -1, bool getLastRow = false)
 {
     var row = new StateTransitionTableRowValues(rowIndex, getLastRow);
     row.LnkScriptCriteria.Click();
     var popup = new WorkflowScriptEditor();
     popup.SwitchTo();
     popup.TxtScript.Value = script;
     popup.BtnOk.Click();
     popup.SwitchBackToParent();
 }
 public IEnumerable<String> GetPropertyCriteria(int rowIndex = -1, bool getLastRow = false)
 {
     var row = new StateTransitionTableRowValues(rowIndex, getLastRow);
     row.LnkPropertiesCriteria.Click();
     var popup = new EvaluateProperties();
     popup.SwitchTo();
     var returnValue = popup.SelCriteriaBox.GetOptionsText();
     popup.BtnSave.Click();
     popup.SwitchBackToParent();
     return returnValue;
 }
 public void SetActivityCriteria(IEnumerable<string> activities, int rowIndex = -1, bool getLastRow = false)
 {
     var row = new StateTransitionTableRowValues(rowIndex, getLastRow);
     row.LnkActivityCriteria.Click();
     var popup = new StateTransitionActivityCriteriaPopup();
     popup.SwitchTo();
     var checkboxes = activities
         .Select(activity => new Checkbox(By.XPath("//span[text()='" + activity + "']/../../td[1]/input[@type='checkbox']")))
         .Where(checkbox => !checkbox.Checked);
     foreach (var checkbox in checkboxes) {
         checkbox.Click();
     }
     popup.BtnOk.Click();
     popup.SwitchBackToParent();
 }
 public string GetPreProcessingScript(int rowIndex = -1, bool getLastRow = false)
 {
     var row = new StateTransitionTableRowValues(rowIndex, getLastRow);
     row.LnkPreProcessingScript.Click();
     var popup = new WorkflowScriptEditor();
     popup.SwitchTo();
     var returnValue = popup.TxtScript.Value;
     popup.BtnOk.Click();
     popup.SwitchBackToParent();
     return returnValue;
 }
        public void Edit(string currentState, string nextState,
			StateTransitionVersionIncrementAction versionIncrementAction = StateTransitionVersionIncrementAction.None,
			string description = "", int rowIndex = -1, bool getLastRow = false)
        {
            var row = new StateTransitionTableRowValues(rowIndex, getLastRow);
            row.LnkCurrentState.Click();
            var popup = new ProjectStateTransitionPropertiesPopup();
            popup.SwitchTo();
            popup.FillPropertiesPopup(currentState, nextState, versionIncrementAction, description);
            popup.SwitchBackToParent();
        }
 public bool AreActivitiesSelectedAsCriteria(IEnumerable<string> activities, int rowIndex = -1, bool getLastRow = false)
 {
     var row = new StateTransitionTableRowValues(rowIndex, getLastRow);
     row.LnkActivityCriteria.Click();
     var popup = new StateTransitionActivityCriteriaPopup();
     popup.SwitchTo();
     var returnValue = activities
         .Select(activity => new Checkbox(By.XPath("//span[text()='" + activity + "']/../../td[1]/input[@type='checkbox']")))
         .All(checkbox => checkbox.Checked);
     popup.BtnCancel.Click();
     popup.SwitchBackToParent();
     return returnValue;
 }
 public void AddPropertyCriteria(string property, string value, int rowIndex = -1, bool getLastRow = false)
 {
     var row = new StateTransitionTableRowValues(rowIndex, getLastRow);
     row.LnkPropertiesCriteria.Click();
     var popup = new EvaluateProperties();
     popup.SwitchTo();
     popup.AddTransitionCriterion(property, value);
     popup.SwitchBackToParent();
 }
 public void AddChangeProperty(string property, string value, int rowIndex = -1, bool getLastRow = false)
 {
     var row = new StateTransitionTableRowValues(rowIndex, getLastRow);
     row.LnkChangeProperties.Click();
     var popup = new ChangeProperties();
     popup.SwitchTo();
     popup.AddChangeProperties(property, value);
     popup.SwitchBackToParent();
     Thread.Sleep(1500);
     WaitForPageLoad();
 }