package com.yahoo.dtf.actions.selenium.commands.state; import com.yahoo.dtf.exception.DTFException; /** * @dtf.tag getElementWidth * @dtf.skip.index * * @dtf.since 1.0 * @dtf.author Rodney Gomes * * @dtf.tag.desc <p> * Retrieve the wdith of the element specified by the locator * attribute. * </p> * * @dtf.tag.example * <selenium baseurl="http://someplace.com"> * <open url="/"/> * <getElementWidth locator="//button[@name='Search']" * property="search.button.width"/> * </selenium> */ public class Getelementwidth extends SeleniumGetStateLocatorTag { @Override public Object getValue() throws DTFException { return getSelenium().getElementWidth(getLocator()); } }