
com.github.arachnidium.model.support.annotations.DefaultContextIndex 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.
* (e.g. NATIVE_APP, WEBVIEW_0, WEBVIEW_1 and so on)
*
* If some screen UI is always at the first context (or second
* and so on) the class-specification could be marked
* by the annotation.
*
* Examples:
*
*
*
*
@DefaultContextIndex(index = 0) //is always the first context
*
public class ...
*
*
* or
*
*
*
*
@DefaultContextIndex(index = 1) //is always the second context
*
public class ...
*
*
* @see ContextAware
*/
@Target(value = {ElementType.TYPE, ElementType.FIELD})
@Retention(value = RetentionPolicy.RUNTIME)
public @interface DefaultContextIndex {
/**
* @return The specified context index
* @see ContextAware
*/
int index();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy