chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.page.events / PageEvent

PageEvent

sealed class PageEvent

Types

CompilationCacheProducedEvent

Issued for every compilation cache generated. Is only available if Page.setGenerateCompilationCache is enabled.

data class CompilationCacheProducedEvent : PageEvent

DocumentOpenedEvent

Fired when opening document to write to.

data class DocumentOpenedEvent : PageEvent

DomContentEventFiredEvent

Official doc

data class DomContentEventFiredEvent : PageEvent

DownloadProgressEvent

Fired when download makes progress. Last call has |done| == true.

data class DownloadProgressEvent : PageEvent

DownloadWillBeginEvent

Fired when page is about to start a download.

data class DownloadWillBeginEvent : PageEvent

FileChooserOpenedEvent

Emitted only when page.interceptFileChooser is enabled.

data class FileChooserOpenedEvent : PageEvent

FrameAttachedEvent

Fired when frame has been attached to its parent.

data class FrameAttachedEvent : PageEvent

FrameClearedScheduledNavigationEvent

Fired when frame no longer has a scheduled navigation.

data class FrameClearedScheduledNavigationEvent : PageEvent

FrameDetachedEvent

Fired when frame has been detached from its parent.

data class FrameDetachedEvent : PageEvent

FrameNavigatedEvent

Fired once navigation of the frame has completed. Frame is now associated with the new loader.

data class FrameNavigatedEvent : PageEvent

FrameRequestedNavigationEvent

Fired when a renderer-initiated navigation is requested. Navigation may still be cancelled after the event is issued.

data class FrameRequestedNavigationEvent : PageEvent

FrameResizedEvent

Official doc

object FrameResizedEvent : PageEvent

FrameScheduledNavigationEvent

Fired when frame schedules a potential navigation.

data class FrameScheduledNavigationEvent : PageEvent

FrameStartedLoadingEvent

Fired when frame has started loading.

data class FrameStartedLoadingEvent : PageEvent

FrameStoppedLoadingEvent

Fired when frame has stopped loading.

data class FrameStoppedLoadingEvent : PageEvent

InterstitialHiddenEvent

Fired when interstitial page was hidden

object InterstitialHiddenEvent : PageEvent

InterstitialShownEvent

Fired when interstitial page was shown

object InterstitialShownEvent : PageEvent

JavascriptDialogClosedEvent

Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.

data class JavascriptDialogClosedEvent : PageEvent

JavascriptDialogOpeningEvent

Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.

data class JavascriptDialogOpeningEvent : PageEvent

LifecycleEventEvent

Fired for top level page lifecycle events such as navigation, load, paint, etc.

data class LifecycleEventEvent : PageEvent

LoadEventFiredEvent

Official doc

data class LoadEventFiredEvent : PageEvent

NavigatedWithinDocumentEvent

Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.

data class NavigatedWithinDocumentEvent : PageEvent

ScreencastFrameEvent

Compressed image data requested by the startScreencast.

data class ScreencastFrameEvent : PageEvent

ScreencastVisibilityChangedEvent

Fired when the page with currently enabled screencast was shown or hidden `.

data class ScreencastVisibilityChangedEvent : PageEvent

WindowOpenEvent

Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.

data class WindowOpenEvent : PageEvent