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

com.github.nscuro.wdm.factory.WebDriverFactory Maven / Gradle / Ivy

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

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

import javax.annotation.Nonnull;
import java.io.IOException;

public interface WebDriverFactory {

    /**
     * Get a {@link WebDriver} instance based on the provided {@link Capabilities}.
     *
     * @param capabilities The desired capabilities
     * @return A {@link WebDriver} instance
     * @throws IOException              When downloading the binary failed
     * @throws IllegalArgumentException When the given {@link Capabilities} do not specify a browser name
     */
    @Nonnull
    WebDriver getWebDriver(final Capabilities capabilities) throws IOException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy