Search in sources :

Example 1 with JDILogger

use of com.epam.jdi.uitests.core.logger.JDILogger in project page-factory-2 by sbtqa.

the class JDIUtils method setJDIConfig.

public static void setJDIConfig(Supplier<WebDriver> driverSupplier) {
    try {
        WebSettings.initFromProperties();
        WebSettings.logger = new JDILogger();
    } catch (IOException e) {
        throw new FactoryRuntimeException("Exception occurred during setting jdi", e);
    }
    driverName = WebSettings.useDriver(driverSupplier);
}
Also used : JDILogger(com.epam.jdi.uitests.core.logger.JDILogger) IOException(java.io.IOException) FactoryRuntimeException(ru.sbtqa.tag.pagefactory.exceptions.FactoryRuntimeException)

Aggregations

JDILogger (com.epam.jdi.uitests.core.logger.JDILogger)1 IOException (java.io.IOException)1 FactoryRuntimeException (ru.sbtqa.tag.pagefactory.exceptions.FactoryRuntimeException)1