public Payment(int paymentnum, Appointment p, int sum, PaymentOpt payopt) { this.paymentnum = paymentnum; this.appointments_Payments = p; this.sum = sum; this.payopt = payopt; }
public void TenantDetails() { //Enter email Email.SendKeys(ExcelLib.ReadData(2, "TenantEmail")); Driver.wait(1000); //Enter FirstName FirstName.SendKeys(ExcelLib.ReadData(2, "FirstName")); Driver.wait(1000); //Enter LastName LastName.SendKeys(ExcelLib.ReadData(2, "LastName")); Driver.wait(1000); //Clear Start date bar StartDate.Clear(); Driver.wait(1000); //Enter StartDate StartDate.SendKeys("12/08/2018"); Driver.wait(1000); //Clear Start date bar EndDate.Clear(); Driver.wait(1000); //Enter EndDate EndDate.SendKeys("21/08/2019"); Driver.wait(1000); //Enter Rent amount RentAmount.SendKeys(ExcelLib.ReadData(2, "RentAmount")); Driver.wait(1000); //Clear Payment Start date bar PSDate.Clear(); Driver.wait(1000); //Enter payment start date PSDate.SendKeys("15/08/2018"); Driver.wait(1000); //Clicking on Payment option drop down PaymentOpt.Click(); Driver.wait(2000); //Clicking on Payment option 2 in drop down PaymentOptTwo.Click(); Driver.wait(2000); //Clinking on Save add button SaveProperty.Click(); Driver.wait(2000); //Click(By.Id("saveProperty")); }