-
- All Implemented Interfaces:
-
org.hildan.chrome.devtools.targets.RenderFrameTarget
public final class ChromePageSession extends AbstractTargetSession implements RenderFrameTarget
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 ChromePageMetaDatametaDataprivate final AuditsDomainauditsprivate final BackgroundServiceDomainbackgroundServiceprivate final BrowserDomainbrowserprivate final DOMDomaindomprivate final EmulationDomainemulationprivate final IODomainioprivate final InputDomaininputprivate final InspectorDomaininspectorprivate final LogDomainlogprivate final MemoryDomainmemoryprivate final NetworkDomainnetworkprivate final OverlayDomainoverlayprivate final PageDomainpageprivate final SecurityDomainsecurityprivate final ServiceWorkerDomainserviceWorkerprivate final StorageDomainstorageprivate final TargetDomaintargetprivate final TracingDomaintracingprivate final FetchDomainfetchprivate final WebAuthnDomainwebAuthnprivate final RuntimeDomainruntimeprivate final SchemaDomainschema
-
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. AuditsDomaingetAudits()Audits domain allows investigation of page violations and possible improvements. BackgroundServiceDomaingetBackgroundService()Defines events for background web platform features. BrowserDomaingetBrowser()The Browser domain defines methods and events for browser managing. DOMDomaingetDom()This domain exposes DOM read/write operations. EmulationDomaingetEmulation()This domain emulates different environments for the page. IODomaingetIo()Input/Output operations for streams produced by DevTools. InputDomaingetInput()InspectorDomaingetInspector()LogDomaingetLog()Provides access to log entries. MemoryDomaingetMemory()NetworkDomaingetNetwork()Network domain allows tracking network activities of the page. OverlayDomaingetOverlay()This domain provides various functionality related to drawing atop the inspected page. PageDomaingetPage()Actions and events related to the inspected page belong to the page domain. SecurityDomaingetSecurity()Security ServiceWorkerDomaingetServiceWorker()StorageDomaingetStorage()TargetDomaingetTarget()Supports additional targets discovery and allows to attach to them. TracingDomaingetTracing()FetchDomaingetFetch()A domain for letting clients substitute browser's network layer with client code. WebAuthnDomaingetWebAuthn()This domain allows configuring virtual authenticators to test the WebAuthn API. RuntimeDomaingetRuntime()Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. SchemaDomaingetSchema()This domain is deprecated. -
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.
-
getAudits
AuditsDomain getAudits()
Audits domain allows investigation of page violations and possible improvements.
-
getBackgroundService
BackgroundServiceDomain getBackgroundService()
Defines events for background web platform features.
-
getBrowser
BrowserDomain getBrowser()
The Browser domain defines methods and events for browser managing.
-
getDom
DOMDomain getDom()
This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an
id. Thisidcan be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note thatiframeowner elements will return corresponding document elements as their child nodes.</p>
-
getEmulation
EmulationDomain getEmulation()
This domain emulates different environments for the page.
-
getInput
InputDomain getInput()
-
getInspector
InspectorDomain getInspector()
-
getMemory
MemoryDomain getMemory()
-
getNetwork
NetworkDomain getNetwork()
Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.
-
getOverlay
OverlayDomain getOverlay()
This domain provides various functionality related to drawing atop the inspected page.
-
getPage
PageDomain getPage()
Actions and events related to the inspected page belong to the page domain.
-
getSecurity
SecurityDomain getSecurity()
Security
-
getServiceWorker
ServiceWorkerDomain getServiceWorker()
-
getStorage
StorageDomain getStorage()
-
getTarget
TargetDomain getTarget()
Supports additional targets discovery and allows to attach to them.
-
getTracing
TracingDomain getTracing()
-
getFetch
FetchDomain getFetch()
A domain for letting clients substitute browser's network layer with client code.
-
getWebAuthn
WebAuthnDomain getWebAuthn()
This domain allows configuring virtual authenticators to test the WebAuthn API.
-
getRuntime
RuntimeDomain getRuntime()
Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.
-
getSchema
SchemaDomain getSchema()
This domain is deprecated.
-
-
-
-