Esempio n. 1
0
 public void UserNavigatesToPropDetailsAndBackToLanding()
 {
     try
     {
         test = extent.CreateTest("UserNavigatesToPropDetailsAndBackToLanding").Info("Test Started");
         BudgetSummaryPage budget = new BudgetSummaryPage(BaseTest.driver);
         budget.ClickBudgetSummaryMenu();
         Thread.Sleep(3000);
         String screentitle = budget.NavigateToBudgetDetails();
         Assert.AreEqual("Details", screentitle, "User does not reach to property details screen");
         String landingtitle = budget.NavigateBackToDevelopmentLandingScreen();
         Assert.AreEqual("Development Budget Summary", landingtitle, "User does not reach to budget landing screen");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }