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

info.novatec.testit.webtester.pagefragments.Link Maven / Gradle / Ivy

package info.novatec.testit.webtester.pagefragments;

import java.util.Optional;

import info.novatec.testit.webtester.pagefragments.annotations.Attribute;
import info.novatec.testit.webtester.pagefragments.annotations.Mapping;
import info.novatec.testit.webtester.pagefragments.traits.Clickable;


@Mapping(tag = "a")
public interface Link extends PageFragment, Clickable {

    /**
     * Returns the href attribute's value as an optional string.
     *
     * @return the optional value of the href attribute
     * @see Attribute
     * @see Optional
     * @since 2.0
     */
    @Attribute("href")
    Optional getDestination();

    /**
     * Returns the target attribute's value as an optional string.
     *
     * @return the optional value of the target attribute
     * @see Attribute
     * @see Optional
     * @since 2.0
     */
    @Attribute("target")
    Optional getTarget();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy