Class HttpSessionId

java.lang.Object
org.openqa.selenium.remote.HttpSessionId

public class HttpSessionId extends Object
  • Method Details

    • getSessionId

      public static Optional<String> getSessionId(String uri)
      Scan uri for a session ID. This is identified by scanning for "{code /session/}" and then extracting the next fragment of the URL. This means that both "/session/foo" and "/wd/hub/session/foo/bar" would both identify the session id as being "foo".