Skip to content

Latest commit

 

History

History
314 lines (272 loc) · 6.94 KB

File metadata and controls

314 lines (272 loc) · 6.94 KB
description title author ms.author ms.date ms.topic ms.prod
Reference for the Page Domain. Actions and events related to the inspected page belong to the page domain.
Page Domain - DevTools Protocol Version 0.2
pelavall
pelavall
8/17/2018
reference
microsoft-edge

Page

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

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.


navigate

Navigates current page to the given URL.

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


getFrameTree

Returns present frame tree structure.

Returns
frameTree FrameTree Present frame tree structure.


Events

frameAttached

Fired when frame has been attached to its parent.

Parameters
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
frameId FrameId Id of the frame that has been detached.


frameNavigated

Fired once navigation of the frame has completed.

Parameters
frame Frame Frame object.


loadEventFired

Corresponds to the window.onload event.

Parameters
timestamp number Number of milliseconds since epoch.


domContentEventFired

Corresponds to the document.onDOMContentLoaded event.

Parameters
timestamp number Number of milliseconds since epoch.


Types

FrameId string

Unique frame identifier.


Frame object

Information about the Frame on the Page.

Properties
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
frame Frame Frame information for this tree item.
childFrames
optional
FrameTree[] Child frames.