com.nordstrom.automation.selenium.interfaces.DriverProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenium3-foundation Show documentation
Show all versions of selenium3-foundation Show documentation
Selenium3 Foundation is an automation framework designed to extend and enhance the capabilities provided by Selenium 3.0 (WebDriver).
package com.nordstrom.automation.selenium.interfaces;
import java.lang.reflect.Method;
import org.openqa.selenium.WebDriver;
import com.nordstrom.automation.selenium.core.TestBase;
/**
* Test classes with non-standard driver configurations implement this interface, which enables the driver manager
* to obtain a driver from the {@link #provideDriver(TestBase, Method)} method of test class instance.
*/
public interface DriverProvider {
/**
* Acquire a driver object for the specified method.
*
* @param instance test class instance
* @param method the method being invoked
* @return driver object
*/
WebDriver provideDriver(TestBase instance, Method method);
}