public static WebDriver getWebDriver()
    {
        if (driver != null)
        {
            closeDriver(driver);
        }
        if ("Firefox".equals(BROWSER))
        {
            FirefoxDriverStore webDrvFac = new FirefoxDriverStore();
            driver = webDrvFac.createWebDriver();
        }
        else if ("Chrome".equals(BROWSER))
        {
            ChromeDriverStore webDrvFac = new ChromeDriverStore(CHROME_DRIVER_PATH);
            driver = webDrvFac.createWebDriver();
        }
        else if ("Safari".equals(BROWSER))
        {
            SafariDriverStore webDrvFac = new SafariDriverStore();
            driver = webDrvFac.createWebDriver();
        }
        driver.get(HOST_URL);
        return driver;
    }