/// <summary> /// Modify a view's name /// </summary> public void ModifyViewName(string viewName, string newViewName) { Trace.WriteLine(String.Format("Modifying entity view viewName to {0}", viewName)); OpenView(viewName); var popup = new EntityViewEditorPopup(); popup.SwitchTo(); popup.TxtDisplayName.Value = newViewName; popup.BtnOk.Click(); popup.SwitchBackToParent(); }
public void CreateNewView(string name) { Trace.WriteLine(String.Format("Creating a new entity view called {0}", name)); BtnNew.Click(); var popup = new EntityViewEditorPopup(); popup.SwitchTo(); popup.TxtDisplayName.Value = name; popup.BtnOk.Click(); popup.SwitchBackToParent(WaitForPopupToClose.Yes); }
public void EditActivityViewEditorName(string activityName, string entityViewName) { Trace.WriteLine(String.Format("Attempting to edit the entity view name of activity: {0} with display name: '{1}'", activityName, entityViewName)); var imageLink = new Button(By.XPath("//a[text()='" + activityName + "']/../../td[9]/a[1]/img")); imageLink.Click(); var popup = new EntityViewEditorPopup(); popup.SwitchTo(); popup.TxtDisplayName.Value = entityViewName; popup.BtnOk.Click(); popup.SwitchBackToParent(); }
public bool VerifyActivityEntityViewName(string activityName, string displayName) { Trace.WriteLine(String.Format("For activity: '{0}', verifying the display name: '{1}' in entity view editor", activityName, displayName)); var parentWindow = GetTitle(); var imageLink = new Button(By.XPath("//a[text()='" + activityName + "']/../../td[9]/a[1]/img")); imageLink.Click(); var popup = new EntityViewEditorPopup(); popup.SwitchTo(); var returnValue = popup.TxtDisplayName.Value == displayName; popup.BtnOk.Click(); PopUpWindow.SwitchTo(parentWindow); return(returnValue); }
public void ModifyViewName(string viewToModify, string newViewName) { // click on hyperlink (if null), bail on test var reviewNoteLink = new Link(By.LinkText(viewToModify)); if (reviewNoteLink == null) { throw new Exception(String.Format("Cannot select reviewerNote {0} because it is not displayed or exists.", viewToModify)); } reviewNoteLink.Click(); var popup = new EntityViewEditorPopup(); popup.SwitchTo(); Trace.WriteLine(String.Format("Modifying View name to: {0}", newViewName)); popup.TxtDisplayName.Value = newViewName; popup.BtnOk.Click(); popup.SwitchBackToParent(); }
public void CreateNewView(string viewName, IEnumerable<string> attributes = null) { Trace.WriteLine(String.Format("Creating view named: {0}.", viewName)); BtnNew.Click(); var popup = new EntityViewEditorPopup(); popup.SwitchTo(); popup.TxtDisplayName.Value = viewName; // currently this functionality doesn't work on Firefox /*if (attributes != null) { foreach (var attr in attributes) { new CCElement(By.XPath("//span[@class='textControl' and text() = '" + attr + "']")).Click(); new CCElement(By.Id("_btnAddAttribute")).Click(); } }*/ popup.BtnOk.Click(); popup.SwitchBackToParent(); }
public void CreateNewView(string viewName, IEnumerable <string> attributes = null) { Trace.WriteLine(String.Format("Creating view named: {0}.", viewName)); BtnNew.Click(); var popup = new EntityViewEditorPopup(); popup.SwitchTo(); popup.TxtDisplayName.Value = viewName; // currently this functionality doesn't work on Firefox /*if (attributes != null) * { * foreach (var attr in attributes) * { * new CCElement(By.XPath("//span[@class='textControl' and text() = '" + attr + "']")).Click(); * new CCElement(By.Id("_btnAddAttribute")).Click(); * } * }*/ popup.BtnOk.Click(); popup.SwitchBackToParent(); }
public bool VerifyActivityEntityViewName(string activityName, string displayName) { Trace.WriteLine(String.Format("For activity: '{0}', verifying the display name: '{1}' in entity view editor", activityName, displayName)); var parentWindow = GetTitle(); var imageLink = new Button(By.XPath("//a[text()='" + activityName + "']/../../td[9]/a[1]/img")); imageLink.Click(); var popup = new EntityViewEditorPopup(); popup.SwitchTo(); var returnValue = popup.TxtDisplayName.Value == displayName; popup.BtnOk.Click(); PopUpWindow.SwitchTo(parentWindow); return returnValue; }