Exemplo n.º 1
0
        public void NavigationToIMTRDetails()
        {
            try
            {
                test = extent.CreateTest("NavigationToIMTRDetails").Info("Test Started");
                IMTRLandingPage    imtr       = new IMTRLandingPage(BaseTest.driver);
                NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
                navigation.ClickMainMenu();
                navigation.ClickTrackRecordOption();

                //Navigation from Ongoing deals
                imtr.ClickOngoingDeals();
                imtr.NavigateToIMTRPropDetail();
                String title_Ongoing = imtr.UserLandsOnPropertyDeatilsScreen();
                Assert.AreEqual(title_Ongoing, "Track Record", "User does not reach to IM Property details");

                //Navigation from Sold deals
                imtr.ClickInvestMentTrackRecordFromIMTR();
                imtr.ClickSoldDeals();
                imtr.NavigateToIMTRPropDetail();
                String title_sold = imtr.UserLandsOnPropertyDeatilsScreen();
                Assert.AreEqual(title_sold, "Track Record", "User does not reach to IM Property details");
                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
                driver.Close();
            }
        }