/** * Gets the LABEL of the given Search Field */ /* * TODO * On Multiple Search : use TextInputField and remove CASE clause * for all methods on SearchForm page object. * * Handle on Steps as: * searchForm.StatusField.GetPickListLabel() * searchForm.CaseNumberField.GetLabel() * */ public string GetSearchFieldLabel(string field) { switch (field) { case CaseListFields.STATUS: return(StatusFilter.GetLabel()); case CaseListFields.TYPE: return(TypeFilter.GetLabel()); case CaseListFields.CASE_NUMBER: return(this.WaitForElementToBeVisible(CASE_NUMBER_SEARCH_FIELD_LABEL_LOCATOR).Text); case CaseListFields.CASE_NAME: return(this.WaitForElementToBeVisible(CASE_NAME_SEARCH_FIELD_LABEL_LOCATOR).Text); default: throw new NotImplementedException(); } }