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

io.github.mike10004.harreplay.tests.FirefoxDriverSetupRule Maven / Gradle / Ivy

package io.github.mike10004.harreplay.tests;

import io.github.bonigarcia.wdm.WebDriverManager;
import org.junit.rules.ExternalResource;

public class FirefoxDriverSetupRule extends ExternalResource {

    private static volatile boolean performed = false;

    @Override
    protected void before() {
        if (!performed) {
            doSetup();
        }
    }

    public static void doSetup() {
        WebDriverManager.firefoxdriver().setup();
        performed = true;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy