예제 #1
0
        public void VerifySwitchingBetweenViews()
        {
            //try
            //{
            test = extent.CreateTest("VerifySwitchingBetweenViews").Info("Test Started");
            //Verify user can switch between card and list view
            BudgetSummaryPage budget = new BudgetSummaryPage(BaseTest.driver);

            budget.ClickBudgetSummaryMenu();
            Thread.Sleep(3000);

            //Verify user can switch to list view
            Boolean lview = budget.ChangeToListView();

            Assert.IsTrue(lview == true, "View not changed to list view");
            driver.Navigate().Refresh();
            Thread.Sleep(5000);

            //Verify user can switch to card view
            Boolean cview = budget.ChangeToCardView();

            Assert.IsTrue(cview == true, "View not changed to card view");
            test.Log(Status.Pass, "Test Case Passed");
            //}
            //catch (Exception e)
            //{
            //    test.Log(Status.Fail, "Test Case Failed");
            //    baseTest.TakeScreenshot();
            //    Console.WriteLine(e.StackTrace);
            //}
        }