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

com.qa.framework.cache.DriverCache Maven / Gradle / Ivy

There is a newer version: 3.8
Show newest version
package com.qa.framework.cache;

import org.openqa.selenium.WebDriver;

/**
 * Created by kcgw001 on 2016/2/2.
 */
public class DriverCache {
    private static ThreadLocal DriverCache = new ThreadLocal();

    /**
     * Set.
     *
     * @param driver the driver
     */
    public static void set(WebDriver driver) {
        DriverCache.set(driver);
    }

    /**
     * Get web driver.
     *
     * @return the web driver
     */
    public static WebDriver get() {
        return DriverCache.get();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy