public void tc_61366_Filter_to_show_only_Active_emails_by_default_and_and_then_include_Inactive_20_1()
        {
            //CommonSection.Administer.System.EmailManagement.SystemEvents();
            _test.Log(Status.Info, "Goto Administer > System >EmailManagement>System Events Page");
            Assert.IsTrue(Driver.Instance.Title.Equals("System Events"));
            SystemEventPage.Search("");
            int TotalEventCount = SystemEventPage.EventTable.getTotalCount();

            SystemEventPage.clickInactivecheckbox();
            Assert.IsTrue(SystemEventPage.EventTable.getTotalCount() > TotalEventCount);
        }
 public void tc_61285_Search_Email_20_1()
 {
     CommonSection.Manage.Training();
     CommonSection.Administer.System.EmailManagement.SystemEvents();
     _test.Log(Status.Info, "Goto Administer > System >EmailManagement>System Events Page");
     Assert.IsTrue(Driver.Instance.Title.Equals("System Events"));
     Assert.IsTrue(SystemEventPage.isSearchTextboxisDisplay());
     _test.Log(Status.Pass, "Verify Search option is display");
     SystemEventPage.Search("Access");
     Assert.IsTrue(SystemEventPage.EventTable.isEmailOpenswith("Access"));
     _test.Log(Status.Pass, "Verify email associated with search are open");
 }
        public void tc_61361_As_an_admin_I_want_to_edit_status_of_multiple_emails_20_1()
        {
            CommonSection.Manage.Training();
            CommonSection.Administer.System.EmailManagement.SystemEvents();
            _test.Log(Status.Info, "Goto Administer > System >EmailManagement>System Events Page");
            Assert.IsTrue(Driver.Instance.Title.Equals("System Events"));
            string firsteventName = SystemEventPage.EventTable.getfirsteventname();

            SystemEventPage.EventTable.SelectFirstRecord();
            SystemEventPage.ActionDropdown.ActionSecect("Inactive");
            SystemEventPage.Search(firsteventName);
            Assert.IsTrue(SystemEventPage.EventTable.isStatus("Inactive"));
            TC61362 = true;
        }
        public void tc_61251_As_an_admin_I_want_to_change_Activity_or_set_Active_dates_for_an_individual_email()
        {
            //CommonSection.Administer.System.EmailManagement.SystemEvents();
            //_test.Log(Status.Info, "Goto Administer > System >EmailManagement>System Events Page");
            Assert.IsTrue(Driver.Instance.Title.Equals("System Events"));
            SystemEventPage.Search("");
            string firsteventName = SystemEventPage.EventTable.getfirsteventname();

            SystemEventPage.EventTable.ClickActiveLink("FirstEvent");
            Assert.IsTrue(SystemEventPage.EventTable.StatusActionMenus("Active", "Inactive", "Set Active Dates"));
            SystemEventPage.EventTable.SelectStatusAction("Inactive");
            Assert.IsTrue(SystemEventPage.EventTable.getfirsteventname() != firsteventName);
            _test.Log(Status.Info, "Verify first event is changed as first one is Inactive ");
            SystemEventPage.Search(firsteventName);
            SystemEventPage.EventTable.ClickActiveLink("FirstEvent");
            SystemEventPage.EventTable.SelectStatusAction("Set Active Dates");
        }
        public void tc_61360_As_a_domain_admin_I_want_to_make_a_copy_of_System_email_20_1()
        {
            //CommonSection.Administer.System.EmailManagement.SystemEvents();
            _test.Log(Status.Info, "Goto Administer > System >EmailManagement>System Events Page");
            Assert.IsTrue(Driver.Instance.Title.Equals("System Events"));
            SystemEventPage.Search("");
            string firsteventName = SystemEventPage.EventTable.getfirsteventname();

            SystemEventPage.EventTable.Action.ClickCopy("firstrecird");
            Assert.IsTrue(SystemEventPage.EventTable.Action.isCopyModaldisplay());
            Assert.IsTrue(SystemEventPage.EventTable.Action.CopyModal.isNamedisplay());
            SystemEventPage.EventTable.Action.CopyModal.Copywithnewname("Copy of_" + firsteventName);

            //StringAssert.AreEqualIgnoringCase("The email was copied and is displayed in the list below.\r\nx", Driver.getSuccessMessage(), "Error message is different");
            SystemEventPage.Search("Copy of_" + firsteventName);
            Assert.IsTrue(SystemEventPage.EventTable.getfirsteventname() == "Copy of_" + firsteventName);
            Assert.IsTrue(SystemEventPage.EventTable.isStatus("Inactive"));
            SystemEventPage.EventTable.Action.delete("Copy of_" + firsteventName);
            Assert.IsTrue(SystemEventPage.EventTable.isNorecordfoundDisplay());
            _test.Log(Status.Info, "Verify record is deleted");
            TC61375 = true;
            TC61358 = true;
        }