Class DriverServiceSessionFactory

  • 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 DriverServiceSessionFactory
    extends java.lang.Object
    implements SessionFactory
    • Constructor Summary

      Constructors 
      Constructor Description
      DriverServiceSessionFactory​(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, java.time.Duration sessionTimeout, org.openqa.selenium.Capabilities stereotype, java.util.function.Predicate<org.openqa.selenium.Capabilities> predicate, org.openqa.selenium.remote.service.DriverService.Builder<?,​?> builder)  
    • 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)  
      boolean test​(org.openqa.selenium.Capabilities capabilities)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • DriverServiceSessionFactory

        public DriverServiceSessionFactory​(org.openqa.selenium.remote.tracing.Tracer tracer,
                                           org.openqa.selenium.remote.http.HttpClient.Factory clientFactory,
                                           java.time.Duration sessionTimeout,
                                           org.openqa.selenium.Capabilities stereotype,
                                           java.util.function.Predicate<org.openqa.selenium.Capabilities> predicate,
                                           org.openqa.selenium.remote.service.DriverService.Builder<?,​?> builder)
    • Method Detail

      • test

        public boolean test​(org.openqa.selenium.Capabilities capabilities)
        Specified by:
        test in interface java.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 interface java.util.function.Function<CreateSessionRequest,​org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,​ActiveSession>>