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