org.unitils.selenium.BrowserChoice Maven / Gradle / Ivy
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;
/**
*
* 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);
private Class extends WebDriver> driverClass;
private BrowserChoice(Class extends WebDriver> driverClass) {
this.driverClass = driverClass;
}
public Class extends WebDriver> getDriverClass() {
return driverClass;
}
}