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

net.thucydides.core.annotations.Managed Maven / Gradle / Ivy

package net.thucydides.core.annotations;

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

import static net.thucydides.core.annotations.ClearCookiesPolicy.BeforeEachTest;

/**
 * Annotation that marks a WebDriver field as one that is managed by the Test Runner.
 * The Serenity Test Runner will instantiate this WebDriver before the tests start,
 * and close it once they have all finished.
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Managed {
    boolean uniqueSession() default false;
    ClearCookiesPolicy clearCookies() default BeforeEachTest;
    String driver() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy