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

com.github.arachnidium.model.support.annotations.classdeclaration.IfBrowserPageTitle Maven / Gradle / Ivy

There is a newer version: 0.9.9.9-BETA
Show newest version
package com.github.arachnidium.model.support.annotations.classdeclaration;

import java.lang.annotation.ElementType;
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.
 * Some times it needs to identify page by title.
 * 

* There is an assumption that it is an additional * condition. *

* If the desired UI is always on the page with * the same title each time the class-specification could be marked * by the annotation. Title value can be specified by regular expression. * *

* *

@IfBrowserPageTitle(regExp = "^*[?[Hello]\\?[world]]") //we need the page with *

//title that contains "Hello world" *

public class ... * */ @Target(value = ElementType.TYPE) @Retention(value = RetentionPolicy.RUNTIME) public @interface IfBrowserPageTitle { /** * The string specification of the default page title * @return */ String regExp(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy