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

com.github.automatedowl.tools.JSErrorsCollectorTestNG 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;

/** 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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy