![JAR search and dependency download from the Maven repository](/logo.png)
com.github.automatedowl.tools.JSErrorsCollectorJUnit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chromedriver-js-errors-collector-junit Show documentation
Show all versions of chromedriver-js-errors-collector-junit Show documentation
Java library which allows to easily collect JS errors received in Chromedriver session,
using annotations on test methods.
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