Class ThreadsafeGeckoDriverService

java.lang.Object
org.openqa.selenium.remote.service.DriverService
org.openqa.selenium.firefox.GeckoDriverService
net.serenitybdd.core.webdriver.servicepools.ThreadsafeGeckoDriverService

public class ThreadsafeGeckoDriverService
extends org.openqa.selenium.firefox.GeckoDriverService
Used as a wrapper around the GeckoDriverService to make it behave in a Threadsafe manner like all the other DriverService implementations.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.openqa.selenium.firefox.GeckoDriverService

    org.openqa.selenium.firefox.GeckoDriverService.Builder
  • Field Summary

    Fields inherited from class org.openqa.selenium.firefox.GeckoDriverService

    GECKO_DRIVER_EXE_PROPERTY

    Fields inherited from class org.openqa.selenium.remote.service.DriverService

    process
  • Constructor Summary

    Constructors
    Constructor Description
    ThreadsafeGeckoDriverService​(EnvironmentVariables environmentVariables)  
  • Method Summary

    Modifier and Type Method Description
    static org.openqa.selenium.firefox.GeckoDriverService createThreadsafeService​(EnvironmentVariables environmentVariables)  
    protected org.openqa.selenium.firefox.GeckoDriverService getThreadlocalGeckoService()  
    java.net.URL getUrl()  
    boolean isRunning()  
    void start()  
    void stop()  

    Methods inherited from class org.openqa.selenium.firefox.GeckoDriverService

    createDefaultService, hasShutdownEndpoint, waitUntilAvailable

    Methods inherited from class org.openqa.selenium.remote.service.DriverService

    checkExecutable, findExecutable, getArgs, getEnvironment, getOutputStream, getUrl, sendOutputTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ThreadsafeGeckoDriverService

      public ThreadsafeGeckoDriverService​(EnvironmentVariables environmentVariables) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • createThreadsafeService

      public static org.openqa.selenium.firefox.GeckoDriverService createThreadsafeService​(EnvironmentVariables environmentVariables)
    • getThreadlocalGeckoService

      protected org.openqa.selenium.firefox.GeckoDriverService getThreadlocalGeckoService()
    • getUrl

      public java.net.URL getUrl()
      Overrides:
      getUrl in class org.openqa.selenium.remote.service.DriverService
    • isRunning

      public boolean isRunning()
      Overrides:
      isRunning in class org.openqa.selenium.remote.service.DriverService
    • start

      public void start() throws java.io.IOException
      Overrides:
      start in class org.openqa.selenium.remote.service.DriverService
      Throws:
      java.io.IOException
    • stop

      public void stop()
      Overrides:
      stop in class org.openqa.selenium.remote.service.DriverService