Class AbstractDriverFactory

java.lang.Object
com.codeborne.selenide.webdriver.AbstractDriverFactory
All Implemented Interfaces:
DriverFactory
Direct Known Subclasses:
AbstractChromiumDriverFactory, DefaultDriverFactory, FirefoxDriverFactory, InternetExplorerDriverFactory, SafariDriverFactory

public abstract class AbstractDriverFactory extends Object implements DriverFactory
  • Constructor Details

    • AbstractDriverFactory

      public AbstractDriverFactory()
  • Method Details

    • webdriverLog

      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

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

      protected <T extends org.openqa.selenium.MutableCapabilities> T createCommonCapabilities(T capabilities, Config config, Browser browser, @Nullable org.openqa.selenium.Proxy proxy)
    • merge

      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

      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

      protected boolean isInteger(String value)
    • isBoolean

      protected boolean isBoolean(String value)
    • majorVersion

      protected int majorVersion(@Nullable String browserVersion)
    • cast

      protected <T> T cast(Object value)