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

org.unitils.selenium.BrowserChoice Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
package org.unitils.selenium;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.remote.RemoteWebDriver;

/**
 *
 * BrowserChoice.
 *
 * @author Jeroen Horemans
 * @author Thomas De Rycke
 * @author Willemijn Wouters
 *
 * @since 1.0.0
 *
 */
public enum BrowserChoice {

    /***/
    FIREFOX(FirefoxDriver.class),
    /***/
    HTMLUNIT(HtmlUnitDriver.class),
    /***/
    IE(InternetExplorerDriver.class),
    /***/
    CHROME(ChromeDriver.class),
    /***/
    REMOTE (RemoteWebDriver.class);

    private Class driverClass;

    /**
     * @param driverClass : should extend {@link WebDriver}.
     */
    private BrowserChoice(final Class driverClass) {
        this.driverClass = driverClass;
    }

    /**
     * Getter driverClass.
     *
     * @return {@link Class} : extends {@link WebDriver}.
     */
    public Class getDriverClass() {
        return driverClass;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy