Package 

Class ChromePageSession

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final ChromeBrowserSession getParent() The parent session which created this page target.
      final ChromePageMetaData getMetaData() Info about the underlying page target.
      final Unit detach() Detaches from this page session, leaving the tab open.
      final Unit close(Boolean keepBrowserContext) Closes this page session.
      • Methods inherited from class org.hildan.chrome.devtools.targets.AbstractTargetSession

        closeWebSocket, unsafe
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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(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.