com.github.automatedowl.tools.JSErrorsCollectorTestNG 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-testng Show documentation
Show all versions of chromedriver-js-errors-collector-testng 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;
/** Java annotation for collecting chromedriver JS errors using TestNG. */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.ANNOTATION_TYPE})
public @interface JSErrorsCollectorTestNG {
/** 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;
}