Package org.openqa.selenium.remote
Class HttpSessionId
- java.lang.Object
-
- org.openqa.selenium.remote.HttpSessionId
-
public class HttpSessionId extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<java.lang.String>
getSessionId(java.lang.String uri)
Scanuri
for a session ID.
-
-
-
Method Detail
-
getSessionId
public static java.util.Optional<java.lang.String> getSessionId(java.lang.String uri)
Scanuri
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".
-
-