-
- All Implemented Interfaces:
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 ChromeBrowserSessiongetParent()The parent session which created this page target. final ChromePageMetaDatagetMetaData()Info about the underlying page target. final Unitdetach()Detaches from this page session, leaving the tab open. final Unitclose(Boolean keepBrowserContext)Closes this page session. -
-
Method Detail
-
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.
-
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(Boolean keepBrowserContext)
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.
If keepBrowserContext is true, the browser context of this page session will be preserved, which means that other tabs that were opened from this page session will not be force-closed.
-
-
-
-