internal void SendRequest() { try { //select property Property.Click(); Thread.Sleep(1000); Property.SendKeys(Keys.PageDown); Property.SendKeys(Keys.ArrowDown); Property.SendKeys(Keys.Enter); // SelectElement selectProperty = new SelectElement(PropertySelect); // selectProperty.SelectByIndex(1); // selectProperty.SelectByText("250 Great South Road Drury Drury"); Thread.Sleep(3000); //select tenent /* * Tenant.Click(); * Thread.Sleep(3000); * Tenant.SendKeys(Keys.ArrowDown); * Tenant.SendKeys(Keys.ArrowDown); * Tenant.SendKeys(Keys.Enter); * Thread.Sleep(1000); * * SelectElement selectTenent = new SelectElement(TenantSelect); * selectTenent.SelectByIndex(1); * * * Thread.Sleep(1000); */ //select type var selectType = new SelectElement(Type); selectType.SelectByIndex(1); /* Type.Click(); * Thread.Sleep(1000); * Type.SendKeys(Keys.ArrowDown); * Type.SendKeys(Keys.Enter); * */ Thread.Sleep(1000); //send due date value DueDate.SendKeys("07/07/2018"); DueDate.SendKeys(Keys.ArrowDown); DueDate.SendKeys(Keys.Enter); Thread.Sleep(1000); Description.SendKeys("Inspection regularly"); //Click on the "Save" button SaveBtn.Click(); Thread.Sleep(2000); } catch (Exception e) { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Test Failed, Add New Inspections throw an exception", e.Message); } }