ru.yandex.qatools.htmlelements.annotations.Name Maven / Gradle / Ivy
package ru.yandex.qatools.htmlelements.annotations;
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 set a name for a block of elements or for an element in a block
* or for a page object element.
*
* For example:
*
*
* @Name("My Form")
* @Block(@FindBy(css = "my_form_css"))
* public class MyForm extends HtmlElement {
* @Name("Text input name")
* @FindBy(css = "text_input_css")
* private TextInput textInput;
*
* // Other elements and methods here
* }
*
*
* @author Artem Eroshenko [email protected]
* Date: 17.06.12
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.FIELD})
public @interface Name {
public String value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy