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

net.thucydides.core.webdriver.WebdriverManager Maven / Gradle / Ivy

There is a newer version: 4.2.1
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy