public void GivenLocationExists(string locationName) { BBCRMHomePage.OpenEventsFA(); EventsFunctionalArea.Locations(); if (!LocationsPanel.LocationExists(locationName)) { LocationsPanel.AddLocation(locationName); } }
public void GivenLocationExists(string locationName) { try { //Open events functional area and then add a location locationName += uniqueStamp; // the unique stamp is a series of numbers to keep names different from each other BBCRMHomePage.OpenEventsFA(); // open event functional area EventsFunctionalArea.Locations(); LocationsPanel.AddLocation(locationName); //add a location } catch (Exception ex) { throw new Exception("Error: could not find the specified event location. " + ex.Message); } }