Class DockerSessionFactory
java.lang.Object
org.openqa.selenium.grid.node.docker.DockerSessionFactory
- All Implemented Interfaces:
Function<CreateSessionRequest,
,org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException, ActiveSession>> Predicate<org.openqa.selenium.Capabilities>
,SessionFactory
-
Constructor Summary
ConstructorsConstructorDescriptionDockerSessionFactory
(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, Duration sessionTimeout, Docker docker, URI dockerUri, Image browserImage, org.openqa.selenium.Capabilities stereotype, List<Device> devices, Image videoImage, DockerAssetsPath assetsPath, String networkName, boolean runningInDocker, Predicate<org.openqa.selenium.Capabilities> predicate, Map<String, Object> hostConfig, List<String> hostConfigKeys) -
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
-
DockerSessionFactory
public DockerSessionFactory(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, Duration sessionTimeout, Docker docker, URI dockerUri, Image browserImage, org.openqa.selenium.Capabilities stereotype, List<Device> devices, Image videoImage, DockerAssetsPath assetsPath, String networkName, boolean runningInDocker, Predicate<org.openqa.selenium.Capabilities> predicate, Map<String, Object> hostConfig, List<String> hostConfigKeys)
-
-
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>>
-