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();
}