Package org.openqa.selenium.remote.server

Examples of org.openqa.selenium.remote.server.Session


  public String getContext() {
    return context == null ? null : context.toString();
  }

  public String getScreenshot() {
    Session session = sessions.get(sessionId);
    return session != null ? session.getAndClearScreenshot() : null;
  }
View Full Code Here


    Session session = sessions.get(sessionId);
    return session != null ? session.getAndClearScreenshot() : null;
  }

  protected WebDriver getDriver() {
    Session session = sessions.get(sessionId);
    return session.getDriver(context);
  }
View Full Code Here

  protected SessionId getRealSessionId() {
    return sessionId;
  }

  public void execute(FutureTask<?> task) throws Exception {
    Session session = sessions.get(sessionId);
    if (session != null)
      session.execute(task);
    else
      task.run();
  }
View Full Code Here

  public GetSessionCapabilities(DriverSessions sessions) {
    super(sessions);
  }

  public ResultType call() {
    Session session = sessions.get(sessionId);

    response = newResponse();
    // Hard code it for HtmlUnit for now
    response.setValue(session.getCapabilities());

    return ResultType.SUCCESS;
  }
View Full Code Here

TOP

Related Classes of org.openqa.selenium.remote.server.Session

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.