Ejemplo n.º 1
0
        public void WhenIEnterTheNotificationDetails(Table table)
        {
            var notificationparams            = table.CreateInstance <NotificationParamaters>();
            NotificationPage notificationpage = new NotificationPage();

            notificationpage.WaitForThePageToLoad();

            Utilities util      = new Utilities();
            string    timestamp = util.Gettimestamp();

            notificationpage.enterNameField(notificationparams.notificationname + timestamp);
            ScenarioContext.Current.Add("notificationname", notificationparams.notificationname + timestamp);
            notificationpage.SelectEventSelectBox(notificationparams.eventname);
            ScenarioContext.Current.Add("eventselected", notificationparams.eventname);
            notificationpage.SelectTemplateSelectBox(notificationparams.templateType);
            ScenarioContext.Current.Add("templateselected", notificationparams.templateType);
            notificationpage.enterConditionField(notificationparams.condition);
            ScenarioContext.Current.Add("conditionfield", notificationparams.condition);
            // used for validating input data
            if (notificationparams.enabled == "true")
            {
                notificationpage.ClickEnabledCheckbox();
            }
            notificationpage.ClickSaveButton();
        }