
com.github.arachnidium.model.support.annotations.ExpectedURL Maven / Gradle / Ivy
The newest version!
package com.github.arachnidium.model.support.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation is for
* UI specifications when it is
* possible the interaction with
* more than one browser window/loaded pages at the same time.
*
* It is possible that desired UI can be identified
* by the set of possible URLs. If there is only one URL
*
*
* @ExpectedURL(regExp = "https://accounts.google.com/ServiceLogin")
*
public class ...
*
*
* If UI is the same but it is possible more than one URL
*
*
* @ExpectedURL(regExp = "docs.google.com/document/")
*
@ExpectedURL(regExp = "docs.google.com/spreadsheets/")
*
public class ...
*
* Each URL can be specified by regular expression.
*/
@Target(value = {ElementType.TYPE, ElementType.FIELD})
@Retention(value = RetentionPolicy.RUNTIME)
@Repeatable(ExpectedURLs.class)
public @interface ExpectedURL {
/**
* @return The value of specified URL.
*/
String regExp();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy