Exemple #1
0
 public void WhenICreateAMulti_EventUsingTemplate(string template, Table events)
 {
     template += uniqueStamp;
     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);
         }
     }
     MultiLevelEventDialog.Save();
 }
Exemple #2
0
        public void WhenICreateAMulti_EventUsingTemplate(string template, Table events)
        {
            BBCRMHomePage.OpenEventsFA();
            EventsFunctionalArea.AddMultiEvent();
            Dialog.SetDropDown("//input[contains(@id,'_EVENTMANAGEMENTTEMPLATEID_value')]", template + uniqueStamp);
            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);
                }
            }
            Dialog.Save();
        }