package com.yahoo.dtf.actions.selenium.commands.state; import com.yahoo.dtf.exception.DTFException; /** * @dtf.tag getSelectedLabels * @dtf.skip.index * * @dtf.since 1.0 * @dtf.author Rodney Gomes * * @dtf.tag.desc <p> * Gets all option labels (visible text) for selected options in * the specified select or multi-select element. * </p> * * @dtf.tag.example * <selenium baseurl="http://someplace.com"> * <open url="/"/> * <getSelectedLabels selectLocator="id=multi-select" property="labels"/> * </selenium> */ public class Getselectedlabels extends SeleniumGetStateSelectLocatorTag { @Override public Object getValue() throws DTFException { return getSelenium().getSelectedLabels(getSelectLocator()); } }