コード例 #1
0
 public void IMTR_GeneralInfoAllDropdownsAreEditable()
 {
     try
     {
         test = extent.CreateTest("IMTR_GeneralInfoAllDropdownsAreEditable").Info("Test Started");
         IMTRLandingPage         imtr            = new IMTRLandingPage(BaseTest.driver);
         IMTRPropertyDetailsPage imtrPropdetails = new IMTRPropertyDetailsPage(BaseTest.driver);
         NavigationMenuPage      navigation      = new NavigationMenuPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickTrackRecordOption();
         imtr.ClickOngoingDeals();
         imtr.NavigateToIMTRPropDetail();
         Boolean market = imtrPropdetails.GI_EditAndUpdatePMarketValue();
         Assert.IsTrue(market == true, "Market field is not editable");
         Boolean proType = imtrPropdetails.GI_EditAndUpdateProductType();
         Assert.IsTrue(proType == true, "product type field is not editable");
         Boolean dealType = imtrPropdetails.GI_EditAndUpdateDealType();
         Assert.IsTrue(dealType == true, "deal type field is not editable");
         Boolean source = imtrPropdetails.GI_EditAndUpdateSourcingMethod();
         Assert.IsTrue(source == true, "sourcing method field is not editable");
         Boolean coinvest = imtrPropdetails.GI_EditAndUpdateCoInvestor();
         Assert.IsTrue(coinvest == true, "Co invest field is not editable");
         Boolean lender = imtrPropdetails.GI_EditAndUpdateLenderName();
         Assert.IsTrue(lender == true, "lender field is not editable");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }