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

com.github.nscuro.wdm.manager.WebDriverManager Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
package com.github.nscuro.wdm.manager;

import org.openqa.selenium.Capabilities;
import org.openqa.selenium.WebDriver;

import javax.annotation.Nonnull;

/**
 * @since 0.1.3
 */
public interface WebDriverManager {

    /**
     * Get a {@link WebDriver} instance based on the given desired {@link Capabilities}.
     *
     * @param capabilities The desired {@link Capabilities}
     * @return A {@link WebDriver} instance
     */
    @Nonnull
    WebDriver getWebDriver(final Capabilities capabilities);

    /**
     * Quit a given {@link WebDriver} instance.
     *
     * @param webDriver The {@link WebDriver} instance to quit
     */
    void quitWebDriver(final WebDriver webDriver);

    /**
     * Quit all open {@link WebDriver} instances managed by this class.
     */
    void shutdown();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy