@Override public Map<String, Object> call() { Session session = getSession(); Map<String, Object> capabilities = (Map<String, Object>) session.getCapabilities().asMap(); capabilities = Maps.newHashMap(capabilities); // Only servers implementing the server-side webdriver-backed selenium need // to return this particular value capabilities.put("webdriver.remote.sessionid", session.getSessionId().toString()); return describeSession(capabilities); }
private void throwUpIfSessionTerminated(SessionId sessId) throws SessionNotFoundException { if (sessId == null) return; Session session = sessions.get(sessId); final boolean isTerminated = session == null; if (isTerminated){ throw new SessionNotFoundException(); } }
public GoForward(Session session) { super(session); }
public ClickElement(Session session) { super(session); }
public UploadFile(Session session) { super(session); }
public SetScriptTimeout(Session session) { super(session); }
public GetCssProperty(Session session) { super(session); }
public SubmitElement(Session session) { super(session); }
public GetElementAttribute(Session session) { super(session); }
public FindActiveElement(Session session) { super(session); }
public GetCurrentUrl(Session session) { super(session); }
public AcceptAlert(Session session) { super(session); }
protected WebElementHandler(Session session) { super(session); }
public ClearElement(Session session) { super(session); }
public SwitchToFrame(Session session) { super(session); }
public FindElements(Session session) { super(session); }
public ChangeUrl(Session session) { super(session); }
public RemoveLocalStorageItem(Session session) { super(session); }
public GetLocalStorageSize(Session session) { super(session); }
public SetLocalStorageItem(Session session) { super(session); }
public SetSessionStorageItem(Session session) { super(session); }
public GetSessionStorageKeys(Session session) { super(session); }
public GetSessionStorageItem(Session session) { super(session); }
public ClearLocalStorage(Session session) { super(session); }
public GetSessionStorageSize(Session session) { super(session); }
public GetLocationContext(Session session) { super(session); }
public GetAppCacheStatus(Session session) { super(session); }
public SetLocationContext(Session session) { super(session); }
public ClearSessionStorage(Session session) { super(session); }
public GetLocalStorageItem(Session session) { super(session); }
public GetLocalStorageKeys(Session session) { super(session); }
public RemoveSessionStorageItem(Session session) { super(session); }
public DeleteNamedCookie(Session session) { super(session); }
public GetTagName(Session session) { super(session); }
public ImplicitlyWait(Session session) { super(session); }
public GetElementLocation(Session session) { super(session); }
public GetSessionCapabilities(Session session) { super(session); }
public GetAllWindowHandles(Session session) { super(session); }
public FindElement(Session session) { super(session); }
public SetWindowSize(Session session) { super(session); }