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

com.github.automatedowl.tools.JSErrorsCollectorJUnit Maven / Gradle / Ivy

Go to download

Java library which allows to easily collect JS errors received in Chromedriver session, using annotations on test methods.

There is a newer version: 1.0.4
Show newest version
package com.github.automatedowl.tools;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.junit.jupiter.api.extension.ExtendWith;

/** Java annotation for collecting chromedriver JS errors using JUnit 5. */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.ANNOTATION_TYPE})
@ExtendWith(JSErrorsExtension.class)
public @interface JSErrorsCollectorJUnit {

    /** Boolean flag for asserting JS errors at the end of the test. */
    boolean assertJSErrors() default true;

    /** Boolean flag for logging JS errors at the end of the test. */
    boolean logJSErrors() default true;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy