public void WhenUserClicksOnListRentalsButtonAndTypesAllTheRequiredFieldsAndClickSaveButton() { // Creates a toggle for the given test, adds all log events under it test = extent.StartTest("ListARental"); //create the object of the CommonPage CommonPage pageproperties = new CommonPage(); pageproperties.clickOwners(); //create the object of the OwnersPage OwnersPage PageOwners = new OwnersPage(); PageOwners.clickListARental(); //create the object of the ListARental Page ListARental PageListRental = new ListARental(); //Enters all the required fields and saves the changes PageListRental.ListAPropertyForRental(true, false); System.Threading.Thread.Sleep(3000); }
public void WhenUserClicksOnListRentalsButtonAndTypesAndClickSaveButton(string property, string title, string Desc, int cost, int rent, string date, int count, string petsallowed) { //create the object of the OwnersPage OwnersPage PageOwners = new OwnersPage(); PageOwners.clickListARental(); //create the object of the ListARental Page ListARental PageListRental = new ListARental(); PageListRental.dataentry(property, title, Desc, cost, rent, date, count, petsallowed); System.Threading.Thread.Sleep(3000); // Click on the save button PageListRental.click(true, false); System.Threading.Thread.Sleep(4000); }