public void TC002_VerifyDateRangeFieldInFilterBar(String Bname) { TestFixtureSetUp(Bname, "TC002-Verify Date Range Field in Filter bar."); try { loginPage.navigateToLoginPage().verifyLoginPageScreenInDetail(); loginPage.loginUsingValidEmailIdAndPassword(); homePage.verifyHomePage().clickUserMenuAndSelectAccountFromList("QA Testing - Promo"); homePage.clickSiteNavigationMenuIconAndSelectOptionFromListOnPage("Dashboard"); promoDashboard.verifyFilterBarSectionOnScreen(false); string[] opt = { "Custom Range", "Today", "Yesterday", "Last 7 Days", "Last 14 Days", "Last Month", "Last 3 Months", "Last 6 Months", "Year To Date", "Last Year" }; promoDashboard.clickOnFilterFieldAndVerifyOrClickOptions("Days", "", opt); promoDashboard.verifyFromDateAndToDatePickerOnScreen(); } catch (Exception e) { Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite008_FilterBar_TC002"); throw; } driver.Quit(); }