|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.saucelabs.selenium.client.factory.spi.SeleniumFactorySPI
public abstract class SeleniumFactorySPI
SPI implemented by the Selenium and WebDriver implementation providers.
Concrete implementations of this SPI must have a public no-argument constructor.
Instances of SeleniumFactorySPIs are discovered via /META-INF/services,
see
the spec for details of the service lookup.
| Constructor Summary | |
|---|---|
SeleniumFactorySPI()
|
|
| Method Summary | |
|---|---|
abstract boolean |
canHandle(java.lang.String uri)
Returns boolean indicating whether the Factory instance can handle the incoming URI. |
abstract com.thoughtworks.selenium.Selenium |
createSelenium(SeleniumFactory factory,
java.lang.String browserURL)
Instantiates the driver. |
abstract org.openqa.selenium.WebDriver |
createWebDriver(SeleniumFactory factory,
java.lang.String browserURL)
Instantiates the driver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SeleniumFactorySPI()
| Method Detail |
|---|
public abstract com.thoughtworks.selenium.Selenium createSelenium(SeleniumFactory factory,
java.lang.String browserURL)
This method is invoked in response to SeleniumFactory.createSelenium() to actually
instantiate the driver.
factory - The factory that captures the configuration that the calling user application is looking for.
Never null.browserURL - See the parameter of the same name in DefaultSelenium#DefaultSelenium(String, int, String, String).
This specifies the domain name in the format of "http://foo.example.com" where the test occurs.
SeleniumFactory to try other SPIs found in the system.
java.lang.IllegalArgumentException - If the URI was recognized by the SPI but some of its configurations were wrong,
or if the SPI failed to instantiate the Selenium driver, throw an exception.
SeleniumFactory will not try other SPIs and propagate the problem to the calling
user application.
public abstract org.openqa.selenium.WebDriver createWebDriver(SeleniumFactory factory,
java.lang.String browserURL)
This method is invoked in response to SeleniumFactory.createWebDriver() ()} to actually
instantiate the driver.
factory - The factory that captures the configuration that the calling user application is looking for.
Never null.browserURL - This specifies the domain name in the format of "http://foo.example.com" where the test occurs.
SeleniumFactory to try other SPIs found in the system.
java.lang.IllegalArgumentException - If the URI was recognized by the SPI but some of its configurations were wrong,
or if the SPI failed to instantiate the Selenium driver, throw an exception.
SeleniumFactory will not try other SPIs and propagate the problem to the calling
user application.public abstract boolean canHandle(java.lang.String uri)
uri - URI to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||