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

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

There is a newer version: 4.2.8
Show newest version
package net.thucydides.core.webdriver;

import org.openqa.selenium.WebDriver;

public class WebdriverContext {

    private final WebdriverManager webdriverManager;
    private final String context;

    public WebdriverContext(WebdriverManager webdriverManager, String context) {
        this.webdriverManager = webdriverManager;
        this.context = context;
    }

    public WebDriver getWebdriver() {
        String driverType = webdriverManager.getCurrentDriverType();
        String driverName = driverType + ":" + context;
        return webdriverManager.getWebdriver(driverName);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy