public void WhenAddProspectManager(string prospectManager) { try { prospectManager += uniqueStamp; //The unique stamp is a series of numbers added to the end to keep names distinctive ConstituentPanel.ClickButton("Edit prospect manager"); // edit the prospect manager Dialog.SetSearchList(Dialog.getXInput("ProspectManagerEditForm2", "_PROSPECTMANAGERFUNDRAISERID_value"), Dialog.getXInput("FundraiserSearch", "_KEYNAME_value"), prospectManager); //set the search to the fundraiser name as the prospect manager Dialog.Save(); } catch (Exception ex) { throw new Exception("Error: could notadd a prospect manager. " + ex.Message); } }
public void WhenIAddASpecialcode(string SpecialCode) { try { //add a special code by selecting the special code tab and pressing the add button string formName = "UNCConstituentSpecialCodeDataFormAddDataForm"; ConstituentPanel.SelectTab("UNC Special Codes"); ConstituentPanel.ClickButton("Add"); //enter a special code and a start date Dialog.SetTextField(Dialog.getXInput(formName, "_SPECIALCODEID_value"), SpecialCode); Dialog.SetTextField(Dialog.getXInput(formName, "_DATE_value"), "12/11/2015"); } catch (Exception ex) { throw new Exception("Error: could not add special code. " + ex.Message); } }
public void GivenAddAMatchingCompanyAsEmployer(string companyName) { try { //open the relationships tab and the relationships inner tab ConstituentPanel.SelectTab("Relationships"); ConstituentPanel.SelectInnerTab("Relationships"); //add an organization relationsip for this constituent as an employee ConstituentPanel.ClickButton("Add organization"); Dialog.SetSearchList(Dialog.getXInput("_RelationshipIndividualtoOrganizationAddForm2", "_RECIPROCALCONSTITUENTID_value"), Dialog.getXInput("searchdialog", "_KEYNAME_value"), companyName); Dialog.SetDropDown("//input[contains(@id,'_RELATIONSHIPTYPECODEID_value')]", "Employee"); Dialog.SetCheckbox("//input[contains(@id,'_ISPRIMARYBUSINESS_value')]", true); Dialog.SetCheckbox("//input[contains(@id,'_ISMATCHINGGIFTRELATIONSHIP_value')]", true); Dialog.Save(); } catch (Exception ex) { throw new Exception("Error: could not add a matching company. " + ex.Message); } }