puppeteer/experimental/puppeteer-firefox/lib/Events.js
Andrey Lushnikov c64e02e7c2
refactor(firefox): introduce FrameManager (#3964)
Split out frame management from Page into FrameManager.
FrameManager will keep track of page's frames and DOMWorlds.
2019-02-08 18:54:11 -08:00

37 lines
943 B
JavaScript

const Events = {
Page: {
Close: 'close',
Console: 'console',
Dialog: 'dialog',
DOMContentLoaded: 'domcontentloaded',
FrameAttached: 'frameattached',
FrameDetached: 'framedetached',
FrameNavigated: 'framenavigated',
Load: 'load',
PageError: 'pageerror',
},
Browser: {
TargetCreated: 'targetcreated',
TargetChanged: 'targetchanged',
TargetDestroyed: 'targetdestroyed',
},
BrowserContext: {
TargetCreated: 'targetcreated',
TargetChanged: 'targetchanged',
TargetDestroyed: 'targetdestroyed',
},
Connection: {
Disconnected: Symbol('Events.Connection.Disconnected'),
},
FrameManager: {
Load: Symbol('Events.FrameManager.Load'),
DOMContentLoaded: Symbol('Events.FrameManager.DOMContentLoaded'),
FrameAttached: Symbol('Events.FrameManager.FrameAttached'),
FrameDetached: Symbol('Events.FrameManager.FrameDetached'),
}
};
module.exports = {Events};