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("QA Testing - Promo"); 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(); }