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 Details

    • AbstractDriverFactory

      public AbstractDriverFactory()
  • Method Details

    • webdriverLog

      @CheckReturnValue @Nonnull protected File webdriverLog(Config config)
    • 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

      @CheckReturnValue @Nonnull protected org.openqa.selenium.MutableCapabilities createCommonCapabilities(Config config, Browser browser, @Nullable org.openqa.selenium.Proxy proxy)
    • createCommonCapabilities

      @CheckReturnValue @Nonnull protected <T extends org.openqa.selenium.MutableCapabilities> T createCommonCapabilities(T capabilities, Config config, Browser browser, @Nullable org.openqa.selenium.Proxy proxy)
    • 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

      @CheckReturnValue @Nonnull protected Object convertStringToNearestObjectType(String value)
      Converts String to Boolean\Integer or returns original String.
      Parameters:
      value - string to convert
      Returns:
      string's object representation
    • isInteger

      @CheckReturnValue protected boolean isInteger(String value)
    • isBoolean

      @CheckReturnValue protected boolean isBoolean(String value)
    • isSystemPropertyNotSet

      @CheckReturnValue protected boolean isSystemPropertyNotSet(String key)
    • majorVersion

      @CheckReturnValue protected int majorVersion(@Nullable String browserVersion)
    • cast

      protected <T> T cast(Object value)