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

driverfactory.webdriver.localdriver.DriverAbstract Maven / Gradle / Ivy

Go to download

An open-source Selenium Java-based Test automation Framework that allows you to perform multiple actions to test a web application's functionality, behaviour, which provides easy to use syntax, and easy to set up environment according to the needed requirements for testing

There is a newer version: 1.1.1
Show newest version
package driverfactory.webdriver.localdriver;

import org.openqa.selenium.WebDriver;

public abstract class DriverAbstract {

    protected WebDriver driver;

    protected abstract void startDriver();

    public void quitDriver(){
        if(driver != null){
            driver.quit();
            driver = null;
        }
    }

    public WebDriver getDriver(){
        if(driver == null){
            startDriver();
        }
        return driver;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy