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

aquality.selenium.elements.Link Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
package aquality.selenium.elements;

import aquality.selenium.core.elements.ElementState;
import aquality.selenium.elements.interfaces.ILink;
import org.openqa.selenium.By;

/**
 * The class that describes the link
 */
public class Link extends Element implements ILink {

    protected Link(final By locator, final String name, final ElementState state) {
        super(locator, name, state);
    }

    protected String getElementType() {
        return getLocalizationManager().getLocalizedMessage("loc.link");
    }

    @Override
    public String getHref() {
        return getAttribute("href", HighlightState.DEFAULT);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy