Exemplo n.º 1
0
        public void TC010_VerifySortingFromFieldOptions(String Bname)
        {
            TestFixtureSetUp(Bname, "TC010-Verify Sorting from Field options.");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

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

                promoDashboard.VerifyPromoDashboardScreen().clickButtonOnViewActionSection("Field Options");
                promoDashboard.VerifyFieldsOptionsSectionOnDashboardScreen();
                string fieldName = promoDashboard.clickOnSortingIconForFieldOnFieldsSection("Descending");
                promoDashboard.VerifySortedFieldsRecordsOnSection(fieldName, "Descending");
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite004_PromoFieldOptions_TC010");
                throw;
            }
            driver.Quit();
        }