public void TC002_VerifyExportFunctionalityForDataReportsSection(String Bname) { TestFixtureSetUp(Bname, "TC002-Verify 'Export' Functionality for Data Reports Section."); try { loginPage.navigateToLoginPage().verifyLoginPageScreenInDetail(); loginPage.loginUsingValidEmailIdAndPassword(); homePage.verifyHomePage().clickUserMenuAndSelectAccountFromList("QA Testing - Promo"); homePage.clickSiteNavigationMenuIconAndSelectOptionFromListOnPage("Dashboard"); promoDashboard.verifyPromoDashboardScreen(); promoDashboard.clickDetailViewButtonAndVerifyOptionsToClick("Table"); promoDashboard.clickButtonOnViewActionSection("Export All").verifyExportAllSectionOnDashboardScreen(); promoDashboard.selectRecordFromViewSection(); promoDashboard.verifyOrClickExportAllSectionInDetailOnScreen("Data Reports"); promoDashboard.verifyOrClickExportAllSectionInDetailOnScreen("Data Reports", "Download"); promoDashboard.verifyFileDownloadedOrNotOnScreen("promo_dashtest", "*.xlsx"); } catch (Exception e) { Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite005_PromoExportFunctionality_TC002"); throw; } driver.Quit(); }