com.agiletestingframework.toolbox.managers.WebDriverManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atf-toolbox Show documentation
Show all versions of atf-toolbox Show documentation
Automation Testing Framework Toolbox Provides simple automation.
package com.agiletestingframework.toolbox.managers;
import org.openqa.selenium.WebDriver;
/**
* Manage webdriver, one per thread to support parallel testing
*/
public class WebDriverManager {
private static ThreadLocal webDriver = new ThreadLocal();
public static WebDriver getDriver() {
return webDriver.get();
}
static void setWebDriver(WebDriver driver) {
webDriver.set(driver);
}
}