Class DriverServiceSessionFactory
java.lang.Object
org.openqa.selenium.grid.node.config.DriverServiceSessionFactory
- All Implemented Interfaces:
Function<CreateSessionRequest,
,org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException, ActiveSession>> Predicate<org.openqa.selenium.Capabilities>
,SessionFactory
-
Constructor Summary
ConstructorsConstructorDescriptionDriverServiceSessionFactory
(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, Duration sessionTimeout, org.openqa.selenium.Capabilities stereotype, Predicate<org.openqa.selenium.Capabilities> predicate, org.openqa.selenium.remote.service.DriverService.Builder<?, ?> builder) -
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,
ActiveSession> apply
(CreateSessionRequest sessionRequest) org.openqa.selenium.Capabilities
boolean
test
(org.openqa.selenium.Capabilities capabilities)
-
Constructor Details
-
DriverServiceSessionFactory
public DriverServiceSessionFactory(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, Duration sessionTimeout, org.openqa.selenium.Capabilities stereotype, Predicate<org.openqa.selenium.Capabilities> predicate, org.openqa.selenium.remote.service.DriverService.Builder<?, ?> builder)
-
-
Method Details
-
getStereotype
public org.openqa.selenium.Capabilities getStereotype()- Specified by:
getStereotype
in interfaceSessionFactory
-
test
public boolean test(org.openqa.selenium.Capabilities capabilities) -
apply
public org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,ActiveSession> apply(CreateSessionRequest sessionRequest) - Specified by:
apply
in interfaceFunction<CreateSessionRequest,
org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException, ActiveSession>>
-