com.qa.framework.cache.DriverCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smart-ui-framework Show documentation
Show all versions of smart-ui-framework Show documentation
Support web and moblie automaton based on selenium and appium
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();
}
}