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

org.fluentlenium.core.events.annotations.BeforeScript Maven / Gradle / Ivy

package org.fluentlenium.core.events.annotations;

import org.fluentlenium.core.events.ScriptListener;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Add this annotation on a method to register it in {@link org.fluentlenium.core.events.EventsRegistry}.
 * 

* Can be used in test adapter or injected pages only. *

* Parameters from {@link ScriptListener} will be injected in the method based on parameters types. * * @see org.fluentlenium.core.events.EventsRegistry#beforeScript(ScriptListener) */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface BeforeScript { /** * Priority of the method. Higher priority will be executed first. * * @return priority value */ int value() default 0; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy