Package com.codeborne.selenide.webdriver
Class AbstractDriverFactory
- java.lang.Object
-
- com.codeborne.selenide.webdriver.AbstractDriverFactory
-
- All Implemented Interfaces:
DriverFactory
- Direct Known Subclasses:
ChromeDriverFactory,DefaultDriverFactory,EdgeDriverFactory,FirefoxDriverFactory,InternetExplorerDriverFactory,OperaDriverFactory
public abstract class AbstractDriverFactory extends java.lang.Object implements DriverFactory
-
-
Constructor Summary
Constructors Constructor Description AbstractDriverFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectconvertStringToNearestObjectType(java.lang.String value)Converts String to Boolean\Integer or returns original String.protected org.openqa.selenium.MutableCapabilitiescreateCommonCapabilities(Config config, Browser browser, org.openqa.selenium.Proxy proxy)protected booleanisBoolean(java.lang.String value)protected booleanisInteger(java.lang.String value)protected booleanisSystemPropertyNotSet(java.lang.String key)protected intmajorVersion(java.lang.String browserVersion)protected voidtransferCapabilitiesFromSystemProperties(org.openqa.selenium.remote.DesiredCapabilities currentBrowserCapabilities)-
Methods 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, setupWebdriverBinary
-
-
-
-
Method Detail
-
createCommonCapabilities
protected org.openqa.selenium.MutableCapabilities createCommonCapabilities(Config config, Browser browser, org.openqa.selenium.Proxy proxy)
-
transferCapabilitiesFromSystemProperties
protected void transferCapabilitiesFromSystemProperties(org.openqa.selenium.remote.DesiredCapabilities currentBrowserCapabilities)
-
convertStringToNearestObjectType
protected java.lang.Object convertStringToNearestObjectType(java.lang.String value)
Converts String to Boolean\Integer or returns original String.- Parameters:
value- string to convert- Returns:
- string's object representation
-
isInteger
protected boolean isInteger(java.lang.String value)
-
isBoolean
protected boolean isBoolean(java.lang.String value)
-
isSystemPropertyNotSet
protected boolean isSystemPropertyNotSet(java.lang.String key)
-
majorVersion
protected int majorVersion(java.lang.String browserVersion)
-
-