Class WebDriverSupplier
java.lang.Object
org.shakespeareframework.selenium.WebDriverSupplier
- All Implemented Interfaces:
AutoCloseable
,Supplier<org.openqa.selenium.WebDriver>
- Direct Known Subclasses:
WebDriverManagerWebDriverSupplier
public abstract class WebDriverSupplier
extends Object
implements Supplier<org.openqa.selenium.WebDriver>, AutoCloseable
-
Constructor Summary
ModifierConstructorDescriptionprotected
WebDriverSupplier
(BrowserType browserType, org.openqa.selenium.Capabilities additionalCapabilities) Creates aWebDriverSupplier
for the givenBrowserType
with additionalCapabilities
that will bemerged
with theBrowserType's baseCapabilities
. -
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.Capabilities
Returns theCapabilities
for theWebDriver
, merged from theBrowserType's baseCapabilities
and additional capabilities.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.AutoCloseable
close
-
Constructor Details
-
WebDriverSupplier
protected WebDriverSupplier(BrowserType browserType, org.openqa.selenium.Capabilities additionalCapabilities) Creates aWebDriverSupplier
for the givenBrowserType
with additionalCapabilities
that will bemerged
with theBrowserType's baseCapabilities
.- Parameters:
browserType
- theBrowserType
to be setupadditionalCapabilities
- additionalCapabilities
for theWebDriver
-
-
Method Details
-
getBrowserType
- Returns:
- the
BrowserType
-
getCapabilities
public org.openqa.selenium.Capabilities getCapabilities()Returns theCapabilities
for theWebDriver
, merged from theBrowserType's baseCapabilities
and additional capabilities.- Returns:
- the
Capabilities
that will be used for the suppliedWebDriver
-
toString
-