All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.selophane.elements.widget.LabelImpl Maven / Gradle / Ivy

There is a newer version: 0.12
Show newest version
package org.selophane.elements.widget;

import org.selophane.elements.base.ElementImpl;
import org.selophane.elements.base.UniqueElementLocator;

/**
 * Wraps a label on a html form with some behavior.
 */
public class LabelImpl extends ElementImpl implements Label {

    /**
     * Creates a Element for a given WebElement.
     *
     * @param elementLocator the locator of the webelement.
     */
    public LabelImpl(final UniqueElementLocator elementLocator) {
        super(elementLocator);
    }

    @Override
    public String getFor() {
        return getWrappedElement().getAttribute("for");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy