Class DockerSessionFactory
- java.lang.Object
-
- org.openqa.selenium.grid.node.docker.DockerSessionFactory
-
- All Implemented Interfaces:
java.util.function.Function<CreateSessionRequest,org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,ActiveSession>>
,java.util.function.Predicate<org.openqa.selenium.Capabilities>
,SessionFactory
public class DockerSessionFactory extends java.lang.Object implements SessionFactory
-
-
Constructor Summary
Constructors Constructor Description DockerSessionFactory(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, java.time.Duration sessionTimeout, Docker docker, java.net.URI dockerUri, Image browserImage, org.openqa.selenium.Capabilities stereotype, java.util.List<Device> devices, Image videoImage, DockerAssetsPath assetsPath, java.lang.String networkName, boolean runningInDocker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,ActiveSession>
apply(CreateSessionRequest sessionRequest)
org.openqa.selenium.Capabilities
getStereotype()
boolean
test(org.openqa.selenium.Capabilities capabilities)
-
-
-
Constructor Detail
-
DockerSessionFactory
public DockerSessionFactory(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, java.time.Duration sessionTimeout, Docker docker, java.net.URI dockerUri, Image browserImage, org.openqa.selenium.Capabilities stereotype, java.util.List<Device> devices, Image videoImage, DockerAssetsPath assetsPath, java.lang.String networkName, boolean runningInDocker)
-
-
Method Detail
-
getStereotype
public org.openqa.selenium.Capabilities getStereotype()
- Specified by:
getStereotype
in interfaceSessionFactory
-
test
public boolean test(org.openqa.selenium.Capabilities capabilities)
- Specified by:
test
in interfacejava.util.function.Predicate<org.openqa.selenium.Capabilities>
-
apply
public org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,ActiveSession> apply(CreateSessionRequest sessionRequest)
- Specified by:
apply
in interfacejava.util.function.Function<CreateSessionRequest,org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,ActiveSession>>
-
-