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