### Question:
SelectList extends AbstractElement implements Selectable, Deselectable { public String[] getSelectedLabels() { List<WebElement> options = getElement().findElements(By.tagName("option")); List<String> selected = new ArrayList<String>(); for (WebElement option : options) { if (option.isSelected()) { selected.add(option.getText()); } } return (String[]) selected.toArray(new String[selected.size()]); } SelectList(String locator);  SelectList(String locator, String controlName);  SelectList(ParentTraits parent, String locator);  SelectList(String locator, String controlName, ParentTraits parent); void select(String optionLocator); void select(String[] optionLocators); void addSelection(String optionLocator); void selectByValue(String value); void selectByLabel(String label); void selectByIndex(int index); void selectByValue(String[] values); void selectByLabel(String[] labels); void selectByIndex(String[] indexes); void addSelectionByValue(String value); void addSelectionByLabel(String label); void addSelectionByIndex(String index); String[] getSelectOptions(); String getSelectedLabel(); String getSelectedValue(); String[] getSelectedLabels(); String[] getSelectedValues(); String[] getContentLabel(); String[] getContentValue(); void deselectAll(); void deselectByValue(String value); void deselectByIndex(int index); void deselectByLabel(String label);  }### Answer:
@Test(groups = {"browser-tests"}) @WebTest public void testSelectedLabels() { Grid.driver().get(TestServerUtils.getTestEditableURL()); String[] getSelectedLabels = normalSelectList.getSelectedLabels(); assertTrue(getSelectedLabels.length > 0, "Validate SelectedLabels method"); assertEquals(getSelectedLabels[0],sLabel, "Validate SelectedLabels method"); }