
com.github.arachnidium.model.support.annotations.ExpectedContext Maven / Gradle / Ivy
The newest version!
package com.github.arachnidium.model.support.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.openqa.selenium.ContextAware;
/**
* This annotation is for
* UI specifications when it is
* possible the interaction with
* more than one mobile context at the same time.
* Some times it needs to identify context by name.
*
* There is an assumption that it is an additional
* condition.
*
* If the desired UI is always on the context with
* the same name each time the class-specification could be marked
* by the annotation. Context name can be specified by regular expression.
*
*
*
* @ExpectedContext(regExp = "WEBVIEW_")
*
public class ...
*
*
* @see ContextAware
*/
@Target(value = {ElementType.TYPE, ElementType.FIELD})
@Retention(value = RetentionPolicy.RUNTIME)
public @interface ExpectedContext {
/**
* @return The specified context name.
* @see ContextAware
*/
String regExp();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy