/// <summary>
 /// Simply adds a property with '=' criteria and value
 /// </summary>
 public void AddChangeProperty(string activityName, string property, string value)
 {
     Trace.WriteLine(String.Format("Adding property: {0} to activity: {1} with value: '{2}'", property, activityName, value));
     var imageLink = new Button(By.XPath("//a[text()='" + activityName + "']/../../td[7]/table/tbody/tr/td/a[2]/img"));
     imageLink.Click();
     var popup = new ChangeProperties();
     popup.SwitchTo();
     popup.AddChangeProperties(property, value);
     popup.SwitchBackToParent();
     Thread.Sleep(1500);
     WaitForPageLoad();
 }
Exemplo n.º 2
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();
        }
Exemplo n.º 3
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);
        }
        /// <summary>
        /// Simply adds a property with '=' criteria and value
        /// </summary>
        public void AddChangeProperty(string activityName, string property, string value)
        {
            Trace.WriteLine(String.Format("Adding property: {0} to activity: {1} with value: '{2}'", property, activityName, value));
            var imageLink = new Button(By.XPath("//a[text()='" + activityName + "']/../../td[7]/table/tbody/tr/td/a[2]/img"));

            imageLink.Click();
            var popup = new ChangeProperties();

            popup.SwitchTo();
            popup.AddChangeProperties(property, value);
            popup.SwitchBackToParent();
            Thread.Sleep(1500);
            WaitForPageLoad();
        }
        /// <summary>
        /// Simply verifies that the property appears in selection criteria field
        /// </summary>
        public bool VerifyProperty(string activityName, string property)
        {
            var returnValue = false;
            var imageLink   = new Button(By.XPath("//a[text()='" + activityName + "']/../../td[7]/table/tbody/tr/td/a[2]/img"));

            imageLink.Click();
            var popup = new ChangeProperties();

            popup.SwitchTo();
            if (popup.SelCriteriaBox.Contains(property))
            {
                Trace.WriteLine(String.Format("Verified change property: {0} within activity: {1}", property,
                                              activityName));
                returnValue = true;
            }
            else
            {
                Trace.WriteLine(String.Format("Change property: {0} within activity: {1} could not be found.", property,
                                              activityName));
            }
            popup.SwitchBackToParent();
            return(returnValue);
        }
 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 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();
 }
 /// <summary>
 /// Simply verifies that the property appears in selection criteria field
 /// </summary>
 public bool VerifyProperty(string activityName, string property)
 {
     var returnValue = false;
     var imageLink = new Button(By.XPath("//a[text()='" + activityName + "']/../../td[7]/table/tbody/tr/td/a[2]/img"));
     imageLink.Click();
     var popup = new ChangeProperties();
     popup.SwitchTo();
     if (popup.SelCriteriaBox.Contains(property)) {
         Trace.WriteLine(String.Format("Verified change property: {0} within activity: {1}", property,
             activityName));
         returnValue = true;
     } else {
         Trace.WriteLine(String.Format("Change property: {0} within activity: {1} could not be found.", property,
             activityName));
     }
     popup.SwitchBackToParent();
     return returnValue;
 }