Package com.codeborne.selenide.webdriver
Class FirefoxDriverFactory
- java.lang.Object
-
- com.codeborne.selenide.webdriver.AbstractDriverFactory
-
- com.codeborne.selenide.webdriver.FirefoxDriverFactory
-
- All Implemented Interfaces:
DriverFactory
- Direct Known Subclasses:
LegacyFirefoxDriverFactory
@ParametersAreNonnullByDefault public class FirefoxDriverFactory extends AbstractDriverFactory
-
-
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()org.openqa.selenium.WebDrivercreate(Config config, Browser browser, org.openqa.selenium.Proxy proxy, java.io.File browserDownloadsFolder)org.openqa.selenium.firefox.FirefoxOptionscreateCapabilities(Config config, Browser browser, org.openqa.selenium.Proxy proxy, java.io.File browserDownloadsFolder)protected org.openqa.selenium.firefox.GeckoDriverServicecreateDriverService(Config config)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(org.openqa.selenium.firefox.FirefoxOptions firefoxOptions, java.io.File browserDownloadsFolder)protected voidsetupPreferences(org.openqa.selenium.firefox.FirefoxOptions firefoxOptions)voidsetupWebdriverBinary()protected voidtransferFirefoxProfileFromSystemProperties(org.openqa.selenium.firefox.FirefoxOptions firefoxOptions, java.util.Map<java.lang.String,java.lang.String> ffProfile)-
Methods inherited from class com.codeborne.selenide.webdriver.AbstractDriverFactory
convertStringToNearestObjectType, createCommonCapabilities, isBoolean, isInteger, isSystemPropertyNotSet, majorVersion, transferCapabilitiesFromSystemProperties, webdriverLog
-
-
-
-
Method Detail
-
setupWebdriverBinary
public void setupWebdriverBinary()
-
create
@CheckReturnValue @Nonnull public org.openqa.selenium.WebDriver create(Config config, Browser browser, @Nullable org.openqa.selenium.Proxy proxy, java.io.File browserDownloadsFolder)
-
createDriverService
@CheckReturnValue @Nonnull protected org.openqa.selenium.firefox.GeckoDriverService createDriverService(Config config)
-
createCapabilities
@CheckReturnValue @Nonnull public org.openqa.selenium.firefox.FirefoxOptions createCapabilities(Config config, Browser browser, @Nullable org.openqa.selenium.Proxy proxy, @Nullable java.io.File browserDownloadsFolder)
-
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(org.openqa.selenium.firefox.FirefoxOptions firefoxOptions, @Nullable java.io.File browserDownloadsFolder)
-
popularContentTypes
@CheckReturnValue @Nonnull protected java.lang.String popularContentTypes()
-
collectFirefoxProfileFromSystemProperties
@CheckReturnValue @Nonnull 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)
-
-