package me.alb_i986.selenium.tinafw.pages;

import me.alb_i986.selenium.tinafw.domain.SupportedBrowser;
import me.alb_i986.selenium.tinafw.utils.PropertyLoader;

import org.openqa.selenium.WebDriver;

public abstract class WebDriverFactory {

	/**
	 * Configurable via the property "tinafw.browser".
	 */
	public static final SupportedBrowser BROWSER_TYPE = SupportedBrowser.valueOf(
			PropertyLoader.getTinaFwConfig("browser").toUpperCase());

	/**
	 * Create and return a WebDriver instance of the given type.
	 * 
	 * @param browserType the supported browser to be created
	 * @return a {@link WebDriver} according to {@link #BROWSER_TYPE}
	 * 
	 * @throws IllegalArgumentException if the browser specified is not supported
	 */
	public abstract WebDriver getWebDriver();

}

@@ -194,16 +194,74 @@
 river;%0A%0A
+/**%0A * Using Decorator to model the WebDriverFactory.%0A */%0A
 public a

add javadoc