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(userName); homePage.clickSiteNavigationMenuIconAndSelectOptionFromListOnPage("QA Testing - Print Dynamics Dashboard (Ad)"); //homePage.clickSiteNavigationMenuIconAndSelectOptionAndSubOptionFromListOnPage(mainMenuName, dashboardName); //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"); string reportName = homePage.getTheCurrentReportIdFromURL(); promoDashboard.VerifyFileDownloadedOrNotOnScreen(reportName, "*.xlsx"); } catch (Exception e) { Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite005_PromoExportFunctionality_TC002"); throw; } driver.Quit(); }