net.thucydides.core.webdriver.WebdriverManager Maven / Gradle / Ivy
package net.thucydides.core.webdriver;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.SessionId;
import java.util.List;
/**
* Manage WebDriver instances.
* It instantiates browser drivers, based on the test configuration, and manages them for the
* duration of the tests.
*
* @author johnsmart
*
*/
public interface WebdriverManager {
WebDriver getWebdriver();
WebdriverContext inContext(String context);
WebDriver getWebdriver(String driver);
WebDriver getWebdriverByName(String actorName);
WebDriver getWebdriverByName(String actorName, String driver);
String getCurrentDriverType();
WebDriver getCurrentDriver();
String getDefaultDriverType();
void overrideDefaultDriverType(String driverType);
SessionId getSessionId();
void closeDriver();
void closeAllDrivers();
void resetDriver();
int getCurrentActiveWebdriverCount();
int getActiveWebdriverCount();
boolean hasAnInstantiatedDriver();
void setCurrentDriver(WebDriver driver);
void clearCurrentDriver();
void registerDriver(WebDriver driver);
List getRegisteredDrivers();
public List getActiveDriverTypes();
void reset();
}