public void GeneralInfo_VerifyErrorMessageDisplayedWhenSoldPriceIsSaved()
 {
     try
     {
         test = extent.CreateTest("GeneralInfo_VerifyErrorMessageDisplayedWhenSoldPriceIsSaved").Info("Test Started");
         NavigationMenuPage      navigation      = new NavigationMenuPage(BaseTest.driver);
         IMTRLandingPage         imtr            = new IMTRLandingPage(BaseTest.driver);
         IMTRPropertyDetailsPage imtrPropdetails = new IMTRPropertyDetailsPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickTrackRecordOption();
         imtr.ClickOngoingDeals();
         imtr.NavigateToIMTRPropDetail();
         String alertText       = imtrPropdetails.GI_EditAndUpdateSoldPrice();
         double calculatedValue = imtrPropdetails.Capitalization_CalculatedLTCValue();
         Assert.IsTrue(alertText == "Please enter Disposition Date and sold Price to sell a property.", $"Expected error 'Please enter Disposition Date and sold Price to sell a property.' does not match actual{alertText}");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
         driver.Quit();
     }
 }
 public void Capitalization_VerifyLTCCalculation()
 {
     try
     {
         test = extent.CreateTest("Capitalization_VerifyLTCCalculation").Info("Test Started");
         NavigationMenuPage      navigation      = new NavigationMenuPage(BaseTest.driver);
         IMTRLandingPage         imtr            = new IMTRLandingPage(BaseTest.driver);
         IMTRPropertyDetailsPage imtrPropdetails = new IMTRPropertyDetailsPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickTrackRecordOption();
         imtr.ClickOngoingDeals();
         imtr.NavigateToIMTRPropDetail();
         double actualValue     = imtrPropdetails.Capitalization_ReturnActualLTCValue();
         double calculatedValue = imtrPropdetails.Capitalization_CalculatedLTCValue();
         Assert.IsTrue(actualValue == calculatedValue, $"Value on screen {actualValue} does not match calculated {calculatedValue}");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
         driver.Quit();
     }
 }