FrameStartedNavigating

@Serializable
data class FrameStartedNavigating(val frameId: FrameId, val url: String, val loaderId: LoaderId, val navigationType: FrameStartedNavigatingNavigationType) : PageEvent

Fired when a navigation starts. This event is fired for both renderer-initiated and browser-initiated navigations. For renderer-initiated navigations, the event is fired after frameRequestedNavigation. Navigation may still be cancelled after the event is issued. Multiple events can be fired for a single navigation, for example, when a same-document navigation becomes a cross-document navigation (such as in the case of a frameset).

Official doc

Constructors

Link copied to clipboard
constructor(frameId: FrameId, url: String, loaderId: LoaderId, navigationType: FrameStartedNavigatingNavigationType)

Properties

Link copied to clipboard

ID of the frame that is being navigated.

Link copied to clipboard

Loader identifier. Even though it is present in case of same-document navigation, the previously committed loaderId would not change unless the navigation changes from a same-document to a cross-document navigation.

Link copied to clipboard

(undocumented in the protocol definition)

Link copied to clipboard
val url: String

The URL the navigation started with. The final URL can be different.