Class DriverServicePool<T extends org.openqa.selenium.remote.service.DriverService>

java.lang.Object
net.serenitybdd.core.webdriver.servicepools.DriverServicePool<T>
Direct Known Subclasses:
ChromeServicePool, EdgeServicePool, GeckoServicePool, InternetExplorerServicePool, PhantomJSServicePool

public abstract class DriverServicePool<T extends org.openqa.selenium.remote.service.DriverService>
extends java.lang.Object
  • Field Details

  • Constructor Details

    • DriverServicePool

      public DriverServicePool()
    • DriverServicePool

      public DriverServicePool​(EnvironmentVariables environmentVariables)
  • Method Details

    • newDriverService

      protected abstract T newDriverService()
    • serviceName

      protected abstract java.lang.String serviceName()
    • newDriverInstance

      protected abstract org.openqa.selenium.WebDriver newDriverInstance​(org.openqa.selenium.Capabilities capabilities)
      Used as a fallback if the driver service cannot be used for some reason.
      Parameters:
      capabilities -
    • getDriverService

      protected T getDriverService()
    • start

      public void start() throws java.io.IOException
      Throws:
      java.io.IOException
    • shutdown

      public void shutdown()
    • newDriver

      public org.openqa.selenium.WebDriver newDriver​(org.openqa.selenium.Capabilities capabilities)
    • isRunning

      public boolean isRunning()
    • ensureServiceIsRunning

      public void ensureServiceIsRunning() throws java.io.IOException
      Throws:
      java.io.IOException