-
public final class ChromePageSession extends AbstractTargetSession
A page session, usually created when attaching to a page from the root browser session.
-
-
Field Summary
Fields Modifier and Type Field Description private final ChromeBrowserSessionparentprivate final ChromePageMetaDatametaData
-
Method Summary
Modifier and Type Method Description final Unitdetach()Detaches from this page session, leaving the tab open. final Unitclose()Closes this page session. final ChromeBrowserSessiongetParent()The parent session which created this page target. final ChromePageMetaDatagetMetaData()Info about the underlying page target. -
Methods inherited from class org.hildan.chrome.devtools.targets.ChromePageSession
closeWebSocket, unsafe -
Methods inherited from class org.hildan.chrome.devtools.targets.AbstractTargetSession
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
detach
final Unit detach()
Detaches from this page session, leaving the tab open.
This preserves the underlying web socket connection (of the parent browser session), because it could be used by other page sessions.
-
close
final Unit close()
Closes this page session.
This only closes the corresponding tab, but preserves the underlying web socket connection (of the parent browser session), because it could be used by other page sessions.
-
getParent
final ChromeBrowserSession getParent()
The parent session which created this page target.
This is described in the session hierarchy section in the "getting started" guide.
-
getMetaData
final ChromePageMetaData getMetaData()
Info about the underlying page target.
-
-
-
-