예제 #1
0
        public void TC008_VerifyResetFieldsFunctionalityInVisibleFieldsSection(String Bname)
        {
            TestFixtureSetUp(Bname, "TC008-Verify 'Reset Fields' functionality in Visible Fields section.");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.VerifyHomePage().clickUserMenuAndSelectAccountFromList(userName);
                homePage.clickSiteNavigationMenuIconAndSelectOptionFromListOnPage("Dashboard");

                promoDashboard.VerifyPromoDashboardScreen().clickButtonOnViewActionSection("Field Options");
                promoDashboard.VerifyFieldsOptionsSectionOnDashboardScreen();
                string[] collections = promoDashboard.VerifyOrGetDefaultFieldsInVisibleFieldsSection(null, false);
                promoDashboard.clickFieldIconAndVerifyFieldNameOnFieldsOptions(false);
                promoDashboard.clickResetFieldsButtonFromVisibleFieldsSection();
                promoDashboard.VerifyOrGetDefaultFieldsInVisibleFieldsSection(collections, true);
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite004_PromoFieldOptions_TC008");
                throw;
            }
            driver.Quit();
        }