Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AddCompilationCacheRequest(val url: String, val data: String)

Request object containing input parameters for the PageDomain.addCompilationCache command.

Link copied to clipboard
@Serializable
object AddCompilationCacheResponse

A dummy response object for the PageDomain.addCompilationCache command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class AddScriptToEvaluateOnLoadRequest(val scriptSource: String)

Request object containing input parameters for the PageDomain.addScriptToEvaluateOnLoad command.

Link copied to clipboard
@Serializable
data class AddScriptToEvaluateOnLoadResponse(val identifier: ScriptIdentifier)

Response type for the PageDomain.addScriptToEvaluateOnLoad command.

Link copied to clipboard
@Serializable
data class AddScriptToEvaluateOnNewDocumentRequest(val source: String, val worldName: String? = null, val includeCommandLineAPI: Boolean? = null, val runImmediately: Boolean? = null)

Request object containing input parameters for the PageDomain.addScriptToEvaluateOnNewDocument command.

Link copied to clipboard
@Serializable
data class AddScriptToEvaluateOnNewDocumentResponse(val identifier: ScriptIdentifier)

Response type for the PageDomain.addScriptToEvaluateOnNewDocument command.

Link copied to clipboard
Link copied to clipboard
@Serializable
data class AdFrameStatus(val adFrameType: AdFrameType, val explanations: List<AdFrameExplanation>? = null)

Indicates whether a frame has been identified as an ad and why.

Link copied to clipboard
@Serializable
enum AdFrameType : Enum<AdFrameType>

Indicates whether a frame has been identified as an ad.

Link copied to clipboard
@Serializable
data class AdScriptId(val scriptId: ScriptId, val debuggerId: UniqueDebuggerId)

Identifies the bottom-most script which caused the frame to be labelled as an ad.

Link copied to clipboard
@Serializable
data class AppManifestError(val message: String, val critical: Int, val line: Int, val column: Int)

Error while paring app manifest.

Link copied to clipboard
@Serializable
data class AppManifestParsedProperties(val scope: String)

Parsed app manifest properties.

Link copied to clipboard
@Serializable
enum AutoResponseMode : Enum<AutoResponseMode>

Enum of possible auto-reponse for permisison / prompt dialogs.

Link copied to clipboard

List of not restored reasons for back-forward cache.

Link copied to clipboard

Types of not restored reasons for back-forward cache.

Link copied to clipboard
@Serializable
object BringToFrontResponse

A dummy response object for the PageDomain.bringToFront command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class CaptureScreenshotRequest(val format: ScreenshotFormat? = null, val quality: Int? = null, val clip: Viewport? = null, val fromSurface: Boolean? = null, val captureBeyondViewport: Boolean? = null, val optimizeForSpeed: Boolean? = null)

Request object containing input parameters for the PageDomain.captureScreenshot command.

Link copied to clipboard
@Serializable
data class CaptureScreenshotResponse(val data: String)

Response type for the PageDomain.captureScreenshot command.

Link copied to clipboard
@Serializable
data class CaptureSnapshotRequest(val format: SnapshotFormat? = null)

Request object containing input parameters for the PageDomain.captureSnapshot command.

Link copied to clipboard
@Serializable
data class CaptureSnapshotResponse(val data: String)

Response type for the PageDomain.captureSnapshot command.

Link copied to clipboard
@Serializable
object ClearCompilationCacheResponse

A dummy response object for the PageDomain.clearCompilationCache command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

A dummy response object for the PageDomain.clearDeviceMetricsOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

A dummy response object for the PageDomain.clearDeviceOrientationOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

A dummy response object for the PageDomain.clearGeolocationOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object CloseResponse

A dummy response object for the PageDomain.close command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class CompilationCacheParams(val url: String, val eager: Boolean? = null)

Per-script compilation cache parameters for Page.produceCompilationCache

Link copied to clipboard
@Serializable
object CrashResponse

A dummy response object for the PageDomain.crash command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class CreateIsolatedWorldRequest(val frameId: FrameId, val worldName: String? = null, val grantUniveralAccess: Boolean? = null)

Request object containing input parameters for the PageDomain.createIsolatedWorld command.

Link copied to clipboard
@Serializable
data class CreateIsolatedWorldResponse(val executionContextId: ExecutionContextId)

Response type for the PageDomain.createIsolatedWorld command.

Link copied to clipboard

Indicates whether the frame is cross-origin isolated and why it is the case.

Link copied to clipboard
@Serializable
data class DeleteCookieRequest(val cookieName: String, val url: String)

Request object containing input parameters for the PageDomain.deleteCookie command.

Link copied to clipboard
@Serializable
object DeleteCookieResponse

A dummy response object for the PageDomain.deleteCookie command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
enum DialogType : Enum<DialogType>

Javascript dialog type.

Link copied to clipboard
@Serializable
object DisableResponse

A dummy response object for the PageDomain.disable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
enum DownloadBehavior : Enum<DownloadBehavior>

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
object EnableResponse

A dummy response object for the PageDomain.enable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
data class FontFamilies(val standard: String? = null, val fixed: String? = null, val serif: String? = null, val sansSerif: String? = null, val cursive: String? = null, val fantasy: String? = null, val math: String? = null)

Generic font families collection.

Link copied to clipboard
@Serializable
data class FontSizes(val standard: Int? = null, val fixed: Int? = null)

Default font sizes.

Link copied to clipboard
@Serializable
data class Frame(val id: FrameId, val parentId: FrameId? = null, val loaderId: LoaderId, val name: String? = null, val url: String, val urlFragment: String? = null, val domainAndRegistry: String? = null, val securityOrigin: String, val mimeType: String, val unreachableUrl: String? = null, val adFrameStatus: AdFrameStatus? = null, val secureContextType: SecureContextType? = null, val crossOriginIsolatedContextType: CrossOriginIsolatedContextType? = null, val gatedAPIFeatures: List<GatedAPIFeatures>? = null)

Information about the Frame on the page.

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
typealias FrameId = String

Unique frame identifier.

Official doc

Link copied to clipboard
@Serializable
data class FrameResource(val url: String, val type: ResourceType, val mimeType: String, val lastModified: TimeSinceEpoch? = null, val contentSize: Double? = null, val failed: Boolean? = null, val canceled: Boolean? = null)

Information about the Resource on the page.

Link copied to clipboard
@Serializable
data class FrameResourceTree(val frame: Frame, val childFrames: List<FrameResourceTree>? = null, val resources: List<FrameResource>)

Information about the Frame hierarchy along with their cached resources.

Link copied to clipboard
@Serializable
data class FrameTree(val frame: Frame, val childFrames: List<FrameTree>? = null)

Information about the Frame hierarchy.

Link copied to clipboard
Link copied to clipboard
@Serializable
data class GenerateTestReportRequest(val message: String, val group: String? = null)

Request object containing input parameters for the PageDomain.generateTestReport command.

Link copied to clipboard
@Serializable
object GenerateTestReportResponse

A dummy response object for the PageDomain.generateTestReport command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class GetAdScriptIdRequest(val frameId: FrameId)

Request object containing input parameters for the PageDomain.getAdScriptId command.

Link copied to clipboard
@Serializable
data class GetAdScriptIdResponse(val adScriptId: AdScriptId? = null)

Response type for the PageDomain.getAdScriptId command.

Link copied to clipboard
@Serializable
data class GetAppIdResponse(val appId: String? = null, val recommendedId: String? = null)

Response type for the PageDomain.getAppId command.

Link copied to clipboard
@Serializable
data class GetAppManifestResponse(val url: String, val errors: List<AppManifestError>, val data: String? = null, val parsed: AppManifestParsedProperties? = null)

Response type for the PageDomain.getAppManifest command.

Link copied to clipboard
@Serializable
data class GetCookiesResponse(val cookies: List<Cookie>)

Response type for the PageDomain.getCookies command.

Link copied to clipboard
@Serializable
data class GetFrameTreeResponse(val frameTree: FrameTree)

Response type for the PageDomain.getFrameTree command.

Link copied to clipboard
@Serializable
data class GetInstallabilityErrorsResponse(val installabilityErrors: List<InstallabilityError>)

Response type for the PageDomain.getInstallabilityErrors command.

Link copied to clipboard
@Serializable
data class GetLayoutMetricsResponse(val layoutViewport: LayoutViewport, val visualViewport: VisualViewport, val contentSize: Rect, val cssLayoutViewport: LayoutViewport, val cssVisualViewport: VisualViewport, val cssContentSize: Rect)

Response type for the PageDomain.getLayoutMetrics command.

Link copied to clipboard
@Serializable
data class GetManifestIconsResponse(val primaryIcon: String? = null)

Response type for the PageDomain.getManifestIcons command.

Link copied to clipboard
@Serializable
data class GetNavigationHistoryResponse(val currentIndex: Int, val entries: List<NavigationEntry>)

Response type for the PageDomain.getNavigationHistory command.

Link copied to clipboard
@Serializable
data class GetOriginTrialsRequest(val frameId: FrameId)

Request object containing input parameters for the PageDomain.getOriginTrials command.

Link copied to clipboard
@Serializable
data class GetOriginTrialsResponse(val originTrials: List<OriginTrial>)

Response type for the PageDomain.getOriginTrials command.

Link copied to clipboard
@Serializable
data class GetPermissionsPolicyStateRequest(val frameId: FrameId)

Request object containing input parameters for the PageDomain.getPermissionsPolicyState command.

Link copied to clipboard

Response type for the PageDomain.getPermissionsPolicyState command.

Link copied to clipboard
@Serializable
data class GetResourceContentRequest(val frameId: FrameId, val url: String)

Request object containing input parameters for the PageDomain.getResourceContent command.

Link copied to clipboard
@Serializable
data class GetResourceContentResponse(val content: String, val base64Encoded: Boolean)

Response type for the PageDomain.getResourceContent command.

Link copied to clipboard
@Serializable
data class GetResourceTreeResponse(val frameTree: FrameResourceTree)

Response type for the PageDomain.getResourceTree command.

Link copied to clipboard
@Serializable
data class HandleJavaScriptDialogRequest(val accept: Boolean, val promptText: String? = null)

Request object containing input parameters for the PageDomain.handleJavaScriptDialog command.

Link copied to clipboard
@Serializable
object HandleJavaScriptDialogResponse

A dummy response object for the PageDomain.handleJavaScriptDialog command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class InstallabilityError(val errorId: String, val errorArguments: List<InstallabilityErrorArgument>)

The installability error

Link copied to clipboard
@Serializable
data class InstallabilityErrorArgument(val name: String, val value: String)
Link copied to clipboard
@Serializable
data class LayoutViewport(val pageX: Int, val pageY: Int, val clientWidth: Int, val clientHeight: Int)

Layout viewport position and dimensions.

Link copied to clipboard
@Serializable
data class NavigateRequest(val url: String, val referrer: String? = null, val transitionType: TransitionType? = null, val frameId: FrameId? = null, val referrerPolicy: ReferrerPolicy? = null)

Request object containing input parameters for the PageDomain.navigate command.

Link copied to clipboard
@Serializable
data class NavigateResponse(val frameId: FrameId, val loaderId: LoaderId? = null, val errorText: String? = null)

Response type for the PageDomain.navigate command.

Link copied to clipboard
@Serializable
data class NavigateToHistoryEntryRequest(val entryId: Int)

Request object containing input parameters for the PageDomain.navigateToHistoryEntry command.

Link copied to clipboard
@Serializable
object NavigateToHistoryEntryResponse

A dummy response object for the PageDomain.navigateToHistoryEntry command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class NavigationEntry(val id: Int, val url: String, val userTypedURL: String, val title: String, val transitionType: TransitionType)

Navigation history entry.

Link copied to clipboard
@Serializable
enum NavigationType : Enum<NavigationType>

The type of a frameNavigated event.

Link copied to clipboard
@Serializable
data class OriginTrial(val trialName: String, val status: OriginTrialStatus, val tokensWithStatus: List<OriginTrialTokenWithStatus>)
Link copied to clipboard

Status for an Origin Trial.

Link copied to clipboard
@Serializable
data class OriginTrialToken(val origin: String, val matchSubDomains: Boolean, val trialName: String, val expiryTime: TimeSinceEpoch, val isThirdParty: Boolean, val usageRestriction: OriginTrialUsageRestriction)
Link copied to clipboard

Origin Trial(https://www.chromium.org/blink/origin-trials) support. Status for an Origin Trial token.

Link copied to clipboard
@Serializable
data class OriginTrialTokenWithStatus(val rawTokenText: String, val parsedToken: OriginTrialToken? = null, val status: OriginTrialTokenStatus)
Link copied to clipboard

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

Link copied to clipboard
@Serializable
data class PermissionsPolicyBlockLocator(val frameId: FrameId, val blockReason: PermissionsPolicyBlockReason)
Link copied to clipboard

Reason for a permissions policy feature to be disabled.

Link copied to clipboard

All Permissions Policy features. This enum should match the one defined in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.

Link copied to clipboard
@Serializable
data class PermissionsPolicyFeatureState(val feature: PermissionsPolicyFeature, val allowed: Boolean, val locator: PermissionsPolicyBlockLocator? = null)
Link copied to clipboard
@Serializable
data class PrintToPDFRequest(val landscape: Boolean? = null, val displayHeaderFooter: Boolean? = null, val printBackground: Boolean? = null, val scale: Double? = null, val paperWidth: Double? = null, val paperHeight: Double? = null, val marginTop: Double? = null, val marginBottom: Double? = null, val marginLeft: Double? = null, val marginRight: Double? = null, val pageRanges: String? = null, val headerTemplate: String? = null, val footerTemplate: String? = null, val preferCSSPageSize: Boolean? = null, val transferMode: TransferMode? = null)

Request object containing input parameters for the PageDomain.printToPDF command.

Link copied to clipboard
@Serializable
data class PrintToPDFResponse(val data: String, val stream: StreamHandle? = null)

Response type for the PageDomain.printToPDF command.

Link copied to clipboard
@Serializable
data class ProduceCompilationCacheRequest(val scripts: List<CompilationCacheParams>)

Request object containing input parameters for the PageDomain.produceCompilationCache command.

Link copied to clipboard

A dummy response object for the PageDomain.produceCompilationCache command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
enum ReferrerPolicy : Enum<ReferrerPolicy>

The referring-policy used for the navigation.

Link copied to clipboard
@Serializable
data class ReloadRequest(val ignoreCache: Boolean? = null, val scriptToEvaluateOnLoad: String? = null)

Request object containing input parameters for the PageDomain.reload command.

Link copied to clipboard
@Serializable
object ReloadResponse

A dummy response object for the PageDomain.reload command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class RemoveScriptToEvaluateOnLoadRequest(val identifier: ScriptIdentifier)

Request object containing input parameters for the PageDomain.removeScriptToEvaluateOnLoad command.

Link copied to clipboard

A dummy response object for the PageDomain.removeScriptToEvaluateOnLoad command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

@Serializable
data class RemoveScriptToEvaluateOnNewDocumentRequest(val identifier: ScriptIdentifier)

Request object containing input parameters for the PageDomain.removeScriptToEvaluateOnNewDocument command.

A dummy response object for the PageDomain.removeScriptToEvaluateOnNewDocument command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object ResetNavigationHistoryResponse

A dummy response object for the PageDomain.resetNavigationHistory command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
enum ScreencastFormat : Enum<ScreencastFormat>

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
data class ScreencastFrameAckRequest(val sessionId: Int)

Request object containing input parameters for the PageDomain.screencastFrameAck command.

Link copied to clipboard
@Serializable
object ScreencastFrameAckResponse

A dummy response object for the PageDomain.screencastFrameAck command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class ScreencastFrameMetadata(val offsetTop: Double, val pageScaleFactor: Double, val deviceWidth: Double, val deviceHeight: Double, val scrollOffsetX: Double, val scrollOffsetY: Double, val timestamp: TimeSinceEpoch? = null)

Screencast frame metadata.

Link copied to clipboard
@Serializable
enum ScreenshotFormat : Enum<ScreenshotFormat>

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
data class ScriptFontFamilies(val script: String, val fontFamilies: FontFamilies)

Font families collection for a script.

Link copied to clipboard

Unique script identifier.

Official doc

Link copied to clipboard
@Serializable
data class SearchInResourceRequest(val frameId: FrameId, val url: String, val query: String, val caseSensitive: Boolean? = null, val isRegex: Boolean? = null)

Request object containing input parameters for the PageDomain.searchInResource command.

Link copied to clipboard
@Serializable
data class SearchInResourceResponse(val result: List<SearchMatch>)

Response type for the PageDomain.searchInResource command.

Link copied to clipboard

Indicates whether the frame is a secure context and why it is the case.

Link copied to clipboard
@Serializable
data class SetAdBlockingEnabledRequest(val enabled: Boolean)

Request object containing input parameters for the PageDomain.setAdBlockingEnabled command.

Link copied to clipboard
@Serializable
object SetAdBlockingEnabledResponse

A dummy response object for the PageDomain.setAdBlockingEnabled command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetBypassCSPRequest(val enabled: Boolean)

Request object containing input parameters for the PageDomain.setBypassCSP command.

Link copied to clipboard
@Serializable
object SetBypassCSPResponse

A dummy response object for the PageDomain.setBypassCSP command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetDeviceMetricsOverrideRequest(val width: Int, val height: Int, val deviceScaleFactor: Double, val mobile: Boolean, val scale: Double? = null, val screenWidth: Int? = null, val screenHeight: Int? = null, val positionX: Int? = null, val positionY: Int? = null, val dontSetVisibleSize: Boolean? = null, val screenOrientation: ScreenOrientation? = null, val viewport: Viewport? = null)

Request object containing input parameters for the PageDomain.setDeviceMetricsOverride command.

Link copied to clipboard

A dummy response object for the PageDomain.setDeviceMetricsOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetDeviceOrientationOverrideRequest(val alpha: Double, val beta: Double, val gamma: Double)

Request object containing input parameters for the PageDomain.setDeviceOrientationOverride command.

Link copied to clipboard

A dummy response object for the PageDomain.setDeviceOrientationOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetDocumentContentRequest(val frameId: FrameId, val html: String)

Request object containing input parameters for the PageDomain.setDocumentContent command.

Link copied to clipboard
@Serializable
object SetDocumentContentResponse

A dummy response object for the PageDomain.setDocumentContent command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetDownloadBehaviorRequest(val behavior: DownloadBehavior, val downloadPath: String? = null)

Request object containing input parameters for the PageDomain.setDownloadBehavior command.

Link copied to clipboard
@Serializable
object SetDownloadBehaviorResponse

A dummy response object for the PageDomain.setDownloadBehavior command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetFontFamiliesRequest(val fontFamilies: FontFamilies, val forScripts: List<ScriptFontFamilies>? = null)

Request object containing input parameters for the PageDomain.setFontFamilies command.

Link copied to clipboard
@Serializable
object SetFontFamiliesResponse

A dummy response object for the PageDomain.setFontFamilies command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetFontSizesRequest(val fontSizes: FontSizes)

Request object containing input parameters for the PageDomain.setFontSizes command.

Link copied to clipboard
@Serializable
object SetFontSizesResponse

A dummy response object for the PageDomain.setFontSizes command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetGeolocationOverrideRequest(val latitude: Double? = null, val longitude: Double? = null, val accuracy: Double? = null)

Request object containing input parameters for the PageDomain.setGeolocationOverride command.

Link copied to clipboard
@Serializable
object SetGeolocationOverrideResponse

A dummy response object for the PageDomain.setGeolocationOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetInterceptFileChooserDialogRequest(val enabled: Boolean)

Request object containing input parameters for the PageDomain.setInterceptFileChooserDialog command.

Link copied to clipboard

A dummy response object for the PageDomain.setInterceptFileChooserDialog command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetLifecycleEventsEnabledRequest(val enabled: Boolean)

Request object containing input parameters for the PageDomain.setLifecycleEventsEnabled command.

Link copied to clipboard

A dummy response object for the PageDomain.setLifecycleEventsEnabled command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetPrerenderingAllowedRequest(val isAllowed: Boolean)

Request object containing input parameters for the PageDomain.setPrerenderingAllowed command.

Link copied to clipboard
@Serializable
object SetPrerenderingAllowedResponse

A dummy response object for the PageDomain.setPrerenderingAllowed command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetRPHRegistrationModeRequest(val mode: AutoResponseMode)

Request object containing input parameters for the PageDomain.setRPHRegistrationMode command.

Link copied to clipboard
@Serializable
object SetRPHRegistrationModeResponse

A dummy response object for the PageDomain.setRPHRegistrationMode command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetSPCTransactionModeRequest(val mode: AutoResponseMode)

Request object containing input parameters for the PageDomain.setSPCTransactionMode command.

Link copied to clipboard
@Serializable
object SetSPCTransactionModeResponse

A dummy response object for the PageDomain.setSPCTransactionMode command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetTouchEmulationEnabledRequest(val enabled: Boolean, val configuration: TouchEmulationEnabledConfiguration? = null)

Request object containing input parameters for the PageDomain.setTouchEmulationEnabled command.

Link copied to clipboard

A dummy response object for the PageDomain.setTouchEmulationEnabled command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetWebLifecycleStateRequest(val state: WebLifecycleState)

Request object containing input parameters for the PageDomain.setWebLifecycleState command.

Link copied to clipboard
@Serializable
object SetWebLifecycleStateResponse

A dummy response object for the PageDomain.setWebLifecycleState command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
enum SnapshotFormat : Enum<SnapshotFormat>

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
data class StartScreencastRequest(val format: ScreencastFormat? = null, val quality: Int? = null, val maxWidth: Int? = null, val maxHeight: Int? = null, val everyNthFrame: Int? = null)

Request object containing input parameters for the PageDomain.startScreencast command.

Link copied to clipboard
@Serializable
object StartScreencastResponse

A dummy response object for the PageDomain.startScreencast command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object StopLoadingResponse

A dummy response object for the PageDomain.stopLoading command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object StopScreencastResponse

A dummy response object for the PageDomain.stopScreencast command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
enum TransferMode : Enum<TransferMode>

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
enum TransitionType : Enum<TransitionType>

Transition type.

Link copied to clipboard
@Serializable
data class Viewport(val x: Double, val y: Double, val width: Double, val height: Double, val scale: Double)

Viewport for capturing screenshot.

Link copied to clipboard
@Serializable
data class VisualViewport(val offsetX: Double, val offsetY: Double, val pageX: Double, val pageY: Double, val clientWidth: Double, val clientHeight: Double, val scale: Double, val zoom: Double? = null)

Visual viewport position, dimensions, and scale.

Link copied to clipboard
@Serializable
object WaitForDebuggerResponse

A dummy response object for the PageDomain.waitForDebugger command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Functions

Link copied to clipboard
suspend fun PageDomain.captureScreenshotToFile(outputImagePath: Path, options: CaptureScreenshotRequest.Builder.() -> Unit = {})

Captures a screenshot of the current page based on the given options, and stores the resulting image into a new file at the given outputImagePath. If the file already exists, it is overwritten.

Link copied to clipboard

Decodes the base64 data of the screenshot into image bytes.