Skip to content

Instantly share code, notes, and snippets.

@oscarryz
Created March 1, 2019 21:49
Show Gist options
  • Save oscarryz/743bb1f5e4b953ec601fef4abfc8f808 to your computer and use it in GitHub Desktop.
Save oscarryz/743bb1f5e4b953ec601fef4abfc8f808 to your computer and use it in GitHub Desktop.
ElementHandle {
_context:
ExecutionContext {
_client:
CDPSession {
_events: [Object],
_eventsCount: 27,
_maxListeners: undefined,
_callbacks: Map {},
_connection: [Connection],
_targetType: 'page',
_sessionId: 'B46FCE00A1BA577BD9E0EDD5BFBFED89' },
_world:
DOMWorld {
_frameManager: [FrameManager],
_frame: [Frame],
_timeoutSettings: [TimeoutSettings],
_documentPromise: [Promise],
_contextResolveCallback: null,
_contextPromise: [Promise],
_waitTasks: Set {},
_detached: false },
_contextId: 3 },
_client:
CDPSession {
_events:
[Object: null prototype] {
'Network.requestWillBeSent': [Function: bound _onRequestWillBeSent],
'Network.requestIntercepted': [Function: bound _onRequestIntercepted],
'Network.requestServedFromCache': [Function: bound _onRequestServedFromCache],
'Network.responseReceived': [Function: bound _onResponseReceived],
'Network.loadingFinished': [Function: bound _onLoadingFinished],
'Network.loadingFailed': [Function: bound _onLoadingFailed],
'Page.frameAttached': [Function],
'Page.frameNavigated': [Function],
'Page.navigatedWithinDocument': [Function],
'Page.frameDetached': [Function],
'Page.frameStoppedLoading': [Function],
'Runtime.executionContextCreated': [Function],
'Runtime.executionContextDestroyed': [Function],
'Runtime.executionContextsCleared': [Function],
'Page.lifecycleEvent': [Function],
'Target.attachedToTarget': [Function],
'Target.detachedFromTarget': [Function],
'Page.domContentEventFired': [Function],
'Page.loadEventFired': [Function],
'Runtime.consoleAPICalled': [Function],
'Runtime.bindingCalled': [Function],
'Page.javascriptDialogOpening': [Function],
'Runtime.exceptionThrown': [Function],
'Security.certificateError': [Function],
'Inspector.targetCrashed': [Function],
'Performance.metrics': [Function],
'Log.entryAdded': [Function] },
_eventsCount: 27,
_maxListeners: undefined,
_callbacks: Map {},
_connection:
Connection {
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
_url:
'ws://127.0.0.1:54643/devtools/browser/7f9b0aa2-54ee-4a33-9342-cf2ac12d6a30',
_lastId: 21,
_callbacks: Map {},
_delay: 0,
_transport: [WebSocketTransport],
_sessions: [Map],
_closed: false },
_targetType: 'page',
_sessionId: 'B46FCE00A1BA577BD9E0EDD5BFBFED89' },
_remoteObject:
{ type: 'object',
subtype: 'node',
className: 'HTMLAnchorElement',
description: 'a',
objectId: '{"injectedScriptId":3,"id":3}' },
_disposed: false,
_page:
Page {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
_closed: false,
_client:
CDPSession {
_events: [Object],
_eventsCount: 27,
_maxListeners: undefined,
_callbacks: Map {},
_connection: [Connection],
_targetType: 'page',
_sessionId: 'B46FCE00A1BA577BD9E0EDD5BFBFED89' },
_target:
Target {
_targetInfo: [Object],
_browserContext: [BrowserContext],
_targetId: 'CBB3F929306D9C8A8BCB92753D0960D0',
_sessionFactory: [Function],
_ignoreHTTPSErrors: false,
_defaultViewport: [Object],
_screenshotTaskQueue: [TaskQueue],
_pagePromise: [Promise],
_initializedCallback: [Function],
_initializedPromise: [Promise],
_closedCallback: [Function],
_isClosedPromise: [Promise],
_isInitialized: true },
_keyboard:
Keyboard { _client: [CDPSession], _modifiers: 0, _pressedKeys: Set {} },
_mouse:
Mouse {
_client: [CDPSession],
_keyboard: [Keyboard],
_x: 0,
_y: 0,
_button: 'none' },
_timeoutSettings:
TimeoutSettings { _defaultTimeout: null, _defaultNavigationTimeout: null },
_touchscreen: Touchscreen { _client: [CDPSession], _keyboard: [Keyboard] },
_accessibility: Accessibility { _client: [CDPSession] },
_networkManager:
NetworkManager {
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
_client: [CDPSession],
_frameManager: [FrameManager],
_requestIdToRequest: Map {},
_requestIdToRequestWillBeSentEvent: Map {},
_extraHTTPHeaders: {},
_offline: false,
_credentials: null,
_attemptedAuthentications: Set {},
_userRequestInterceptionEnabled: false,
_protocolRequestInterceptionEnabled: false,
_requestHashToRequestIds: [Multimap],
_requestHashToInterceptionIds: [Multimap] },
_frameManager:
FrameManager {
_events: [Object],
_eventsCount: 3,
_maxListeners: undefined,
_client: [CDPSession],
_page: [Circular],
_networkManager: [NetworkManager],
_timeoutSettings: [TimeoutSettings],
_frames: [Map],
_contextIdToContext: [Map],
_isolatedWorlds: [Set],
_mainFrame: [Frame] },
_emulationManager:
EmulationManager {
_client: [CDPSession],
_emulatingMobile: false,
_hasTouch: false },
_tracing:
Tracing { _client: [CDPSession], _recording: false, _path: '' },
_pageBindings: Map {},
_ignoreHTTPSErrors: false,
_coverage:
Coverage { _jsCoverage: [JSCoverage], _cssCoverage: [CSSCoverage] },
_javascriptEnabled: true,
_viewport: { width: 800, height: 600 },
_screenshotTaskQueue: TaskQueue { _chain: [Promise] },
_workers: Map {} },
_frameManager:
FrameManager {
_events:
[Object: null prototype] {
[Symbol(Events.FrameManager.FrameAttached)]: [Function],
[Symbol(Events.FrameManager.FrameDetached)]: [Function],
[Symbol(Events.FrameManager.FrameNavigated)]: [Function] },
_eventsCount: 3,
_maxListeners: undefined,
_client:
CDPSession {
_events: [Object],
_eventsCount: 27,
_maxListeners: undefined,
_callbacks: Map {},
_connection: [Connection],
_targetType: 'page',
_sessionId: 'B46FCE00A1BA577BD9E0EDD5BFBFED89' },
_page:
Page {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
_closed: false,
_client: [CDPSession],
_target: [Target],
_keyboard: [Keyboard],
_mouse: [Mouse],
_timeoutSettings: [TimeoutSettings],
_touchscreen: [Touchscreen],
_accessibility: [Accessibility],
_networkManager: [NetworkManager],
_frameManager: [Circular],
_emulationManager: [EmulationManager],
_tracing: [Tracing],
_pageBindings: Map {},
_ignoreHTTPSErrors: false,
_coverage: [Coverage],
_javascriptEnabled: true,
_viewport: [Object],
_screenshotTaskQueue: [TaskQueue],
_workers: Map {} },
_networkManager:
NetworkManager {
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
_client: [CDPSession],
_frameManager: [Circular],
_requestIdToRequest: Map {},
_requestIdToRequestWillBeSentEvent: Map {},
_extraHTTPHeaders: {},
_offline: false,
_credentials: null,
_attemptedAuthentications: Set {},
_userRequestInterceptionEnabled: false,
_protocolRequestInterceptionEnabled: false,
_requestHashToRequestIds: [Multimap],
_requestHashToInterceptionIds: [Multimap] },
_timeoutSettings:
TimeoutSettings { _defaultTimeout: null, _defaultNavigationTimeout: null },
_frames: Map { 'CBB3F929306D9C8A8BCB92753D0960D0' => [Frame] },
_contextIdToContext: Map { 3 => [ExecutionContext], 4 => [ExecutionContext] },
_isolatedWorlds: Set { '__puppeteer_utility_world__' },
_mainFrame:
Frame {
_frameManager: [Circular],
_client: [CDPSession],
_parentFrame: null,
_url: 'http://www.example.com/',
_id: 'CBB3F929306D9C8A8BCB92753D0960D0',
_detached: false,
_loaderId: '1C288A4AAEE81EBCB3D944FCD2EE9252',
_lifecycleEvents: [Set],
_mainWorld: [DOMWorld],
_secondaryWorld: [DOMWorld],
_childFrames: Set {},
_name: undefined,
_navigationURL: 'http://www.example.com/' } } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment