Package org.openqa.selenium.remote

Examples of org.openqa.selenium.remote.SessionId


        if (driver.getSessionId() == null) {
            log.warning("The driver has been already destroyed and can't be destroyed again.");
            return;
        }

        SessionId sessionId = driver.getSessionId();
        Capabilities driverCapabilities = driver.getCapabilities();

        InitializationParameter param = initParams.get().remove(sessionId);

        if (param != null) {
View Full Code Here


        // try to reuse the session
        // retrieve the session id
        ReusedSession stored = sessionStore.get().pull(initParam);
        // get all the stored sessions for given initParam
        while (stored != null) {
            SessionId reusedSessionId = stored.getSessionId();
            Capabilities reusedCapabilities = stored.getCapabilities();
            try {
                driver = ReusableRemoteWebDriver.fromReusedSession(remoteAddress, reusedCapabilities, reusedSessionId);
                break;
            } catch (UnableReuseSessionException ex) {
View Full Code Here

        DesiredCapabilities reusableCapabilities = createReusableCapabilities(capabilities);
        return new ReusedSession(sessionId, reusableCapabilities);
    }

    public SessionId getSessionId() {
        return new SessionId(opaqueKey);
    }
View Full Code Here

                || storyName.equals("BeforeScenario")
                || storyName.equals("AfterScenario")) {
            return;
        }

        SessionId sessionId = sessionIds.get();

        if (sessionId == null ) {
            // no executed scenarios, as (most likely) excluded
            return;
        }
View Full Code Here

      throw e;
    }
  }

  public void setSessionId(String sessionId) {
    this.sessionId = new SessionId(sessionId);
  }
View Full Code Here

        DesiredCapabilities reusableCapabilities = createReusableCapabilities(capabilities);
        return new ReusedSession(sessionId, reusableCapabilities);
    }

    public SessionId getSessionId() {
        return new SessionId(opaqueKey);
    }
View Full Code Here

                        .getSimpleName());
            }
            return;
        }

        SessionId sessionId = driver.getSessionId();
        Capabilities driverCapabilities = driver.getCapabilities();

        InitializationParameter param = initParams.get().remove(sessionId);

        if (param != null) {
View Full Code Here

        // try to reuse the session
        // retrieve the session id
        ReusedSession stored = sessionStore.get().pull(initParam);
        // get all the stored sessions for given initParam
        while (stored != null) {
            SessionId reusedSessionId = stored.getSessionId();
            Capabilities reusedCapabilities = stored.getCapabilities();
            try {
                driver = ReusableRemoteWebDriver.fromReusedSession(remoteAddress, reusedCapabilities, reusedSessionId);
                break;
            } catch (UnableReuseSessionException ex) {
View Full Code Here

        DesiredCapabilities reusableCapabilities = createReusableCapabilities(capabilities);
        return new ReusedSession(sessionId, reusableCapabilities);
    }

    public SessionId getSessionId() {
        return new SessionId(opaqueKey);
    }
View Full Code Here

  }

  public SessionId newSession(Capabilities desiredCapabilities) throws Exception {
    Session session = new Session(factory, desiredCapabilities);
   
    SessionId sessionId = new SessionId(String.valueOf(System.currentTimeMillis()));
    sessionIdToDriver.put(sessionId, session);
    return sessionId;
  }
View Full Code Here

TOP

Related Classes of org.openqa.selenium.remote.SessionId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.