public void TenantRentDetails() { //Clicking on save button AddaTenant.Click(); Thread.Sleep(500); //Enter Tenant email TenantEmail.SendKeys(ExcelLib.ReadData(2, "TenantEmail")); Driver.wait(1000); //Enter tenant first name TenantFName.SendKeys("Rosalinda"); Driver.wait(3000); //Enter tenant last name /*if (TenantLName.Enabled) * { * TenantLName.SendKeys("Marimar"); * Driver.wait(3000); * } * else * { * Console.WriteLine("No Element found"); * }*/ //Enter Tenant rent start date TenantSDate.Clear(); TenantSDate.SendKeys("12/08/2018"); Driver.wait(2000); //Enter Tenant rent end date TenantEDate.Clear(); TenantEDate.SendKeys("12/08/2019"); Driver.wait(2000); //Enter tenant payment start date TenantRAmount.SendKeys(ExcelLib.ReadData(2, "RentAmount")); Driver.wait(2000); //Enter tenant payment date start TenantPSDate.Clear(); TenantPSDate.SendKeys("15/08/2018"); Driver.wait(2000); //Clicking on payment due dropdown menu PaymentOption.Click(); Thread.Sleep(500); //Clicking on payment option 2 PaymentOptionTwo.Click(); Thread.Sleep(500); //Clicking on Tenant Next button if (TenantNext.Enabled) { TenantNext.Click(); Driver.wait(2000); } Driver.wait(2000); //Clicking on Tenant second Next button if (TenantSNext.Displayed) { TenantSNext.Click(); } Driver.wait(3000); //Clicking on Tenant submit button if (TenantSubmit.Displayed) { TenantSubmit.Click(); Driver.wait(2000); } Driver.wait(5000); //Clicking on Dropdown /*if (DropDown.Displayed) * { * DropDown.Click(); * Driver.wait(2000); * } * //Clicking on Dropdown * ManageTenant.Click(); * Driver.wait(2000);*/ }