public void MaximizeAndMinimizeForAllSection()
 {
     try
     {
         test = extent.CreateTest("MaximizeAndMinimizeForAllSection").Info("Test Started");
         IMTRLandingPage         imtr            = new IMTRLandingPage(BaseTest.driver);
         IMTRPropertyDetailsPage imtrPropdetails = new IMTRPropertyDetailsPage(BaseTest.driver);
         imtr.ClickTrackRecordOnInMenu();
         Thread.Sleep(3000);
         imtr.ClickOngoingDeals();
         imtr.NavigateToIMTRPropDetail();
         imtrPropdetails.Capitalization_MaximizeMinimize();
         imtrPropdetails.Investor_MaximizeMinimize();
         imtrPropdetails.SponsorEquity_MaximizeMinimize();
         imtrPropdetails.ThirdParty_MaximizeMinimize();
         imtrPropdetails.PurchasePrice_MaximizeMinimize();
         Boolean res = imtrPropdetails.GeneralInfo_MaximizeMinimize();
         Assert.True(res == true, "Maximize minimize does not work");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void UpdateEquitiesAndConfirmTotalReturns()
 {
     try
     {
         test = extent.CreateTest("UpdateEquitiesAndConfirmTotalReturns").Info("Test Started");
         IMTRLandingPage         imtr            = new IMTRLandingPage(BaseTest.driver);
         IMTRPropertyDetailsPage imtrPropdetails = new IMTRPropertyDetailsPage(BaseTest.driver);
         imtr.ClickTrackRecordOnInMenu();
         Thread.Sleep(3000);
         imtr.ClickOngoingDeals();
         imtr.NavigateToIMTRPropDetail();
         imtrPropdetails.EditAndInvestorEquity();
         imtrPropdetails.EditAndUpdate3rdPartyEquity();
         imtrPropdetails.EditAndUpdateSponsorReturns();
         String res = imtrPropdetails.CheckTotalReturns();
         Assert.IsTrue(res == "15,000", "Sum of equities is not correct");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
        public void VerifyPropertyTypeIsOngoing()
        {
            BaseTest baseTest = new BaseTest();

            try
            {
                test = extent.CreateTest("VerifyPropertyTypeIsOngoing").Info("Test Started");
                IMTRLandingPage         imtr            = new IMTRLandingPage(BaseTest.driver);
                IMTRPropertyDetailsPage imtrPropdetails = new IMTRPropertyDetailsPage(BaseTest.driver);
                imtr.ClickTrackRecordOnInMenu();
                imtr.ClickOngoingDeals();
                imtr.NavigateToIMTRPropDetail();
                String dealtype = imtrPropdetails.ReturnPropertyDealType();
                Assert.AreEqual("Ongoing", dealtype, "Property is not ongoing property");
                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
        public void DownloadIMTRReportsforOngoingAndSold()
        {
            try
            {
                test = extent.CreateTest("DownloadIMTRReportsforOngoingAndSold").Info("Test Started");
                IMTRLandingPage imtr = new IMTRLandingPage(BaseTest.driver);
                imtr.ClickTrackRecordOnInMenu();
                //Verify Download works for ongoing deals
                imtr.ClickOngoingDeals();
                imtr.DownloadReportForAllDeals();

                //Verify Download works for Sold deals
                Thread.Sleep(3000);
                imtr.ClickSoldDeals();
                imtr.DownloadReportForAllDeals();
                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
        public void VerifyGraphsTitlesDisplayed()
        {
            try
            {
                test = extent.CreateTest("VerifyGraphsTitlesDisplayed").Info("Test Started");
                IMTRLandingPage imtr = new IMTRLandingPage(BaseTest.driver);
                //Navigation to IMTR screen
                imtr.ClickTrackRecordOnInMenu();
                Thread.Sleep(3000);

                //Below steps verifies graph titles for Total SF
                String sftitle    = imtr.GetTotalSFGraphTitles();
                String sfsubtitle = imtr.GetTotalSFSubTitle();
                Assert.AreEqual("TOTAL SF", sftitle, "SFGraph title does not match");
                Assert.AreEqual("SF of Ongoing Deals", sfsubtitle, "SFGraph sub title does not match");

                //Below steps verifies graph titles for Equity Invested
                String eqtitle    = imtr.GetTotalEquityInvestedTitles();
                String eqsubtitle = imtr.GetTotalEquityInvestedSubTitle();
                Assert.AreEqual("EQUITY INVESTED", eqtitle, "EQGraph title does not match");
                Assert.AreEqual("Equity Invested in Ongoing Deals", eqsubtitle, "EQGraph sub title does not match");

                //Below steps verifies graph titles for Equity Invested
                String occtitle    = imtr.GetOccupanyGraphTitle();
                String OccSubtitle = imtr.GetOccupanyGraphSubTitle();
                Assert.AreEqual("OCCUPANCY RATE", occtitle, " Occupancy Graph title does not match");
                Assert.AreEqual("Current Occupancy", OccSubtitle, "Occupancy Graph sub title does not match");
                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }