public void WhenIFillAllTheFormsOfPropertyDetailsPageFinanceDetailsPageAndTenantDetailsPageAndClickSaveButton() { AddNewPropertyPage addNewPropertyPage = new AddNewPropertyPage(); //Fill details of AddNewProperty Page. addNewPropertyPage.FillAllFieldsWithoutTickOwnerOccupied(); //Verify addNewPropertyPage addNewPropertyPage.VerifyPropertyDetailsPage(); //Click Next button and move to financedetailsPage FinancedetailsPage financedetailsPage = addNewPropertyPage.ClickNext(); //Fill the detail financedetailsPage.FillFinanceDetailsPage(); //Add repayment financedetailsPage.FillAddRepayment(); //Verify Finance Detail Page financedetailsPage.VerifyFinanceDetailsPage(); //Goto to Tenant Detail Page TenantDetailsPage tenantDetailsPage = financedetailsPage.ClickNext(); // fill the data of tenantDetailsPage tenantDetailsPage.FillTheDetails(); // verify tenantDetailsPage tenantDetailsPage.VerifyTenantDetailsPage(); // Click save button PropertyOwnerPage propertyOwnerPageSavedNewPro = tenantDetailsPage.ClickSave(); }
public void WhenIEnteredAllTheMandatoryFieldsInTheTenantDetailsPageAndClickSaveButton(string email, string fname, string lname, string sdate, string edate, int ramt, string psdate) { //create the object of the Tenant Details Page and enter the mandatory fields TenantDetailsPage TenantPage = new TenantDetailsPage(); TenantPage.EnterTenantDetails(email, fname, lname, sdate, edate, Convert.ToString(ramt), psdate); System.Threading.Thread.Sleep(3000); // Click on the save button TenantPage.click(false, false, true); System.Threading.Thread.Sleep(3000); }
public void CreateNewProperty() { // Creates a toggle for the given test, adds all log events under it test = extent.StartTest("Create new property and Verity it" + GetDateAndTime.GetTimeNow()); //Now page is Dashboard, then go to PropertyOwnersPage PropertyOwnerPage propertyOwnerPage = new DashboardPage().GotoPropertyOwnersPage(); AddNewPropertyPage addNewPropertyPage = propertyOwnerPage.ClickAddNewPropertyBtn(); //Fill details of AddNewProperty Page. addNewPropertyPage.FillAllFieldsWithoutTickOwnerOccupied(); //Verify addNewPropertyPage addNewPropertyPage.VerifyPropertyDetailsPage(); //Click Next button and move to financedetailsPage FinancedetailsPage financedetailsPage = addNewPropertyPage.ClickNext(); //Fill the detail financedetailsPage.FillFinanceDetailsPage(); //Add repayment financedetailsPage.FillAddRepayment(); //Verify Finance Detail Page financedetailsPage.VerifyFinanceDetailsPage(); //Goto to Tenant Detail Page TenantDetailsPage tenantDetailsPage = financedetailsPage.ClickNext(); // fill the data of tenantDetailsPage tenantDetailsPage.FillTheDetails(); // verify tenantDetailsPage tenantDetailsPage.VerifyTenantDetailsPage(); // Click save button PropertyOwnerPage propertyOwnerPageSavedNewPro = tenantDetailsPage.ClickSave(); // Verify the result propertyOwnerPageSavedNewPro.SearchPropertiesWhichAdded(); }