Freigeben über


Page Domain - DevTools Protocol Version 0.2 (EdgeHTML)

Actions and events related to the inspected page belong to the page domain.

Classification Members
Methods enable, disable, navigate, getFrameTree
Events frameAttached, frameDetached, frameNavigated, loadEventFired, domContentEventFired
Types FrameId, Frame, FrameTree

Methods

enable

Enables page domain notifications.

 


disable

Disables page domain notifications.

 


Navigates current page to the given URL.

Parameters Type Details
url string URL to navigate the page to.
frameId (optional) FrameId Frame id to navigate. If not specified, will navigate the top page.
Returns Type Details
frameId FrameId Frame id that will be navigated.

getFrameTree

Returns present frame tree structure.

Returns Type Details
frameTree FrameTree Present frame tree structure.

Events

frameAttached

Fired when frame has been attached to its parent.

Parameters Type Details
frameId FrameId Id of the frame that has been attached.
parentFrameId FrameId Parent frame identifier.
stack (optional) Runtime.StackTrace JavaScript stack trace of when frame was attached, only set if frame initiated from script.

frameDetached

Fired when frame has been detached from its parent.

Parameters Type Details
frameId FrameId ID of the frame that has been detached.

frameNavigated

Fired once navigation of the frame has completed.

Parameters Type Details
frame Frame Frame object.

loadEventFired

Corresponds to the window.onload event.

Parameters Type Details
timestamp number Number of milliseconds since epoch.

domContentEventFired

Corresponds to the document.onDOMContentLoaded event.

Parameters Type Details
timestamp number Number of milliseconds since epoch.

Types

FrameId string

Unique frame identifier.

 


Frame object

Information about the Frame on the Page.

Properties Type Details
id FrameId Frame unique identifier.
parentId (optional) FrameId Parent frame unique identifier.
name (optional) string Frame's name as specified in the tag.
url string Frame document's URL.
securityOrigin string Frame document's security origin.
mimeType string Frame document's mimeType as determined by the browser.

FrameTree object

Information about the Frame hierarchy.

Properties Type Details
frame Frame Frame information for this tree item.
childFrames (optional) FrameTree[] Child frames.