use
Performs the given operation in this session and closes the web socket connection.
Note: This effectively closes all child sessions, because they're based on the same web socket connection.
Performs the given operation in this ChildSession and closes this session and its children, as well as the corresponding targets.
This preserves the underlying web socket connection (of the parent BrowserSession), because it could be used by other sessions that are children of the same browser session, but not children of this ChildSession.
If you don't want to close child targets created during this session, use ChildSession.close with keepBrowserContext=true instead of this helper.