public void WhenIStartToCreateAMulti_EventUsingTemplate(string template, Table events) { BBCRMHomePage.OpenEventsFA(); EventsFunctionalArea.AddMultiEvent(); Dialog.SetDropDown("//input[contains(@id,'_EVENTMANAGEMENTTEMPLATEID_value')]", template + uniqueStamp); foreach (var eventToAdd in events.Rows) { eventToAdd["event"] += uniqueStamp; if (eventToAdd["parent"] == string.Empty) { MultiLevelEventDialog.AddExistingEvent(eventToAdd["event"]); } else { MultiLevelEventDialog.AddChildEvent(eventToAdd["event"], eventToAdd["parent"] + uniqueStamp); } } }
public void WhenIStartToCreateAMulti_EventUsingTemplate(string template, Table events) { BBCRMHomePage.OpenEventsFA(); EventsFunctionalArea.AddMultiEvent(); MultiLevelEventDialog.SetTemplate(template); foreach (var eventToAdd in events.Rows) { eventToAdd["event"] += uniqueStamp; if (eventToAdd["parent"] == string.Empty) { MultiLevelEventDialog.AddExistingEvent(eventToAdd["event"]); } else { MultiLevelEventDialog.AddChildEvent(eventToAdd["event"], eventToAdd["parent"] + uniqueStamp); } } }