Package com.codeborne.selenide.webdriver
Class FirefoxDriverFactory
- java.lang.Object
-
- com.codeborne.selenide.webdriver.FirefoxDriverFactory
-
- All Implemented Interfaces:
DriverFactory
- Direct Known Subclasses:
LegacyFirefoxDriverFactory
public class FirefoxDriverFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FirefoxDriverFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.String>collectFirefoxProfileFromSystemProperties()protected java.lang.ObjectconvertStringToNearestObjectType(java.lang.String value)Converts String to Boolean\Integer or returns original String.org.openqa.selenium.WebDrivercreate(Config config, Browser browser, org.openqa.selenium.Proxy proxy)org.openqa.selenium.firefox.FirefoxOptionscreateCapabilities(Config config, Browser browser, org.openqa.selenium.Proxy proxy)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 java.lang.StringpopularContentTypes()protected voidsetCapability(org.openqa.selenium.firefox.FirefoxProfile profile, java.lang.String capability, java.lang.String value)protected voidsetupBrowserBinary(Config config, org.openqa.selenium.firefox.FirefoxOptions firefoxOptions)protected voidsetupDownloadsFolder(Config config, org.openqa.selenium.firefox.FirefoxOptions firefoxOptions)protected voidsetupPreferences(org.openqa.selenium.firefox.FirefoxOptions firefoxOptions)voidsetupWebdriverBinary()protected voidtransferCapabilitiesFromSystemProperties(org.openqa.selenium.remote.DesiredCapabilities currentBrowserCapabilities)protected voidtransferFirefoxProfileFromSystemProperties(org.openqa.selenium.firefox.FirefoxOptions firefoxOptions, java.util.Map<java.lang.String,java.lang.String> ffProfile)
-
-
-
Method Detail
-
setupWebdriverBinary
public void setupWebdriverBinary()
-
create
public org.openqa.selenium.WebDriver create(Config config, Browser browser, org.openqa.selenium.Proxy proxy)
-
createCapabilities
public org.openqa.selenium.firefox.FirefoxOptions createCapabilities(Config config, Browser browser, org.openqa.selenium.Proxy proxy)
-
setupBrowserBinary
protected void setupBrowserBinary(Config config, org.openqa.selenium.firefox.FirefoxOptions firefoxOptions)
-
setupPreferences
protected void setupPreferences(org.openqa.selenium.firefox.FirefoxOptions firefoxOptions)
-
setupDownloadsFolder
protected void setupDownloadsFolder(Config config, org.openqa.selenium.firefox.FirefoxOptions firefoxOptions)
-
popularContentTypes
protected java.lang.String popularContentTypes()
-
collectFirefoxProfileFromSystemProperties
protected java.util.Map<java.lang.String,java.lang.String> collectFirefoxProfileFromSystemProperties()
-
transferFirefoxProfileFromSystemProperties
protected void transferFirefoxProfileFromSystemProperties(org.openqa.selenium.firefox.FirefoxOptions firefoxOptions, java.util.Map<java.lang.String,java.lang.String> ffProfile)
-
setCapability
protected void setCapability(org.openqa.selenium.firefox.FirefoxProfile profile, java.lang.String capability, java.lang.String value)
-
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)
-
-