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 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(); }
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 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(); }
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); }
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 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 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 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; }