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

ru.yandex.qatools.htmlelements.annotations.Block Maven / Gradle / Ivy

package ru.yandex.qatools.htmlelements.annotations;

import org.openqa.selenium.support.FindBy;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation that is used to mark a block of elements to specify the way of locating it.
 * 

* Use this annotation to mark a descendant of {@link ru.yandex.qatools.htmlelements.element.HtmlElement} class * that represents a block of elements (e.g. web form) and specify its locator with {@link FindBy} annotation inside. *

* For example: *

*

 * @Block(@FindBy(css = "my_form_css"))
 * public class MyForm extends HtmlElement {
 * // Your form elements here
 * }
 * 
* * @author Artem Eroshenko [email protected] * Date: 17.06.12 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @interface Block { public FindBy value(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy