List of usage examples for org.openqa.selenium.remote.server DriverSessions interface-usage
From source file org.openqa.testing.StaticTestSessions.java
public class StaticTestSessions implements DriverSessions { private final Map<SessionId, Session> sessionIdToDriver = Maps.newHashMap(); private final List<SessionId> freeSessions = new ArrayList<>(); public StaticTestSessions(Capabilities capabilities, WebDriver... drivers) {
From source file org.openqa.testing.TestSessions.java
public class TestSessions implements DriverSessions { private final AtomicLong sessionKeyFactory = new AtomicLong(0); private final Map<SessionId, Session> sessionIdToDriver = Maps.newHashMap(); public SessionId newSession(Capabilities desiredCapabilities) throws Exception {