private void GetConstituentPanel(string lastName) { if (!ConstituentPanel.IsLastName(lastName)) { BBCRMHomePage.OpenConstituentsFA(); ConstituentsFunctionalArea.ConstituentSearch(lastName); } }
public void ThenConstituentIsCreated(string lastName) { lastName += uniqueStamp; if (!ConstituentPanel.IsLastName(lastName)) { throw new ArgumentException("Current constituent page does not have the last name " + lastName); } }
private void GetConstituentPanel(string lastName) { if (!ConstituentPanel.IsLastName(lastName)) { BBCRMHomePage.OpenConstituentsFA(); //Open the Constituent Functional area ConstituentsFunctionalArea.ConstituentSearch(lastName); // search for the constituent using the last name } }
public void ThenConstituentIsCreated(string lastName) { //verify that the constituent is created with the specified last name if (lastName != "Testing") { lastName += uniqueStamp; //The unique stamp is a series of numbers to keep constituents different from each other } if (!ConstituentPanel.IsLastName(lastName)) { throw new ArgumentException("Current constituent page does not have the last name " + lastName); } }
private void GetConstituentPanel(string lastName) { if (!ConstituentPanel.IsLastName(lastName)) { BBCRMHomePage.OpenConstituentsFA(); ConstituentsFunctionalArea.ConstituentSearch(lastName); } //if (!Panel.IsPanelType("individual") || !ConstituentPanel.IsConstituentPanelHeader(lastName)) //{ // BBCRMHomePage.OpenConstituentsFA(); // ConstituentsFunctionalArea.ConstituentSearch(lastName); //} }
private void GetConstituentPanel(string lastName) { try { if (!ConstituentPanel.IsLastName(lastName)) { BBCRMHomePage.OpenConstituentsFA(); //Open constituent functional area ConstituentsFunctionalArea.ConstituentSearch(lastName); // search by last name for a constituent } } catch (Exception ex) { throw new Exception("Error: could not open the constituent panel. " + ex.Message); } }