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

driverfactory.webdriver.localdriver.DriverFactory 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 constants.DriverType;

public class DriverFactory {

    private DriverFactory(){

    }

    public static DriverAbstract getDriverFactory(DriverType driverType){
        switch (driverType) {
            case CHROME: {
                return new ChromeDriverFactory();
            }
            case FIREFOX: {
                return new FirefoxDriverFactory();
            }
            case EDGE: {
                return new EdgeDriverFactory();
            }
            default: throw new IllegalStateException("Unexpected value: " + driverType);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy