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_PROPERTYFields 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.GeckoDriverServicecreateThreadsafeService(EnvironmentVariables environmentVariables)protected org.openqa.selenium.firefox.GeckoDriverServicegetThreadlocalGeckoService()java.net.URLgetUrl()booleanisRunning()voidstart()voidstop()Methods inherited from class org.openqa.selenium.firefox.GeckoDriverService
createDefaultService, hasShutdownEndpoint, waitUntilAvailableMethods inherited from class org.openqa.selenium.remote.service.DriverService
checkExecutable, findExecutable, getArgs, getEnvironment, getOutputStream, getUrl, sendOutputToMethods 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:
getUrlin classorg.openqa.selenium.remote.service.DriverService
-
isRunning
public boolean isRunning()- Overrides:
isRunningin classorg.openqa.selenium.remote.service.DriverService
-
start
public void start() throws java.io.IOException- Overrides:
startin classorg.openqa.selenium.remote.service.DriverService- Throws:
java.io.IOException
-
stop
public void stop()- Overrides:
stopin classorg.openqa.selenium.remote.service.DriverService
-