Package com.codeborne.selenide.webdriver
Class AbstractDriverFactory
java.lang.Object
com.codeborne.selenide.webdriver.AbstractDriverFactory
- All Implemented Interfaces:
DriverFactory
- Direct Known Subclasses:
AbstractChromiumDriverFactory
,DefaultDriverFactory
,FirefoxDriverFactory
,InternetExplorerDriverFactory
,SafariDriverFactory
@ParametersAreNonnullByDefault
public abstract class AbstractDriverFactory
extends Object
implements DriverFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
protected Object
Converts String to Boolean\Integer or returns original String.protected org.openqa.selenium.MutableCapabilities
createCommonCapabilities
(Config config, Browser browser, org.openqa.selenium.Proxy proxy) protected <T extends org.openqa.selenium.MutableCapabilities>
TcreateCommonCapabilities
(T capabilities, Config config, Browser browser, org.openqa.selenium.Proxy proxy) protected boolean
protected boolean
protected boolean
protected int
majorVersion
(String browserVersion) protected <T extends org.openqa.selenium.MutableCapabilities>
Tmerge
(T capabilities, org.openqa.selenium.MutableCapabilities additionalCapabilities) protected void
transferCapabilitiesFromSystemProperties
(org.openqa.selenium.MutableCapabilities currentBrowserCapabilities) protected File
webdriverLog
(Config config) protected <DS extends org.openqa.selenium.remote.service.DriverService,
B extends org.openqa.selenium.remote.service.DriverService.Builder<DS, ?>>
DSMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.codeborne.selenide.webdriver.DriverFactory
create, createCapabilities
-
Constructor Details
-
AbstractDriverFactory
public AbstractDriverFactory()
-
-
Method Details
-
webdriverLog
-
withLog
protected <DS extends org.openqa.selenium.remote.service.DriverService,B extends org.openqa.selenium.remote.service.DriverService.Builder<DS, DS withLog?>> (Config config, B dsBuilder) -
createCommonCapabilities
-
createCommonCapabilities
-
merge
@CheckReturnValue @Nonnull protected <T extends org.openqa.selenium.MutableCapabilities> T merge(T capabilities, org.openqa.selenium.MutableCapabilities additionalCapabilities) -
transferCapabilitiesFromSystemProperties
protected void transferCapabilitiesFromSystemProperties(org.openqa.selenium.MutableCapabilities currentBrowserCapabilities) -
convertStringToNearestObjectType
Converts String to Boolean\Integer or returns original String.- Parameters:
value
- string to convert- Returns:
- string's object representation
-
isInteger
-
isBoolean
-
isSystemPropertyNotSet
-
majorVersion
-
cast
-