/// <summary> /// Fills in hospital details and click create. /// </summary> public void FillInHospitalDetailsAndClickCreate() { Text.SendKeys(hospital); DisplayOrder.SendKeys(PageHelper.RandomNumber(2)); PageHelper.PickRandomValueFromDropList(Type); ReferenceNo.SendKeys("Ref" + PageHelper.RandomString(5)); CreateHospitalButton.Click(); BackToList.Click(); }
/// <summary> /// Searches and edit hospital. /// </summary> public void SearchAndEditHospital() { HospitalSearch.SendKeys(hospital); PageHelper.WaitForElement(Driver, EditHospital).Click(); PageHelper.WaitForElement(Driver, Text).Click(); Text.Clear(); Text.SendKeys("Edited" + hospital); CreateHospitalButton.Click(); PageHelper.WaitForElement(Driver, BackToList).Click(); }