SetUserAgentOverrideRequest

@Serializable
data class SetUserAgentOverrideRequest(val userAgent: String, val acceptLanguage: String? = null, val platform: String? = null, val userAgentMetadata: UserAgentMetadata? = null)

Request object containing input parameters for the EmulationDomain.setUserAgentOverride command.

Constructors

Link copied to clipboard
constructor(userAgent: String, acceptLanguage: String? = null, platform: String? = null, userAgentMetadata: UserAgentMetadata? = null)

Types

Link copied to clipboard
class Builder(val userAgent: String)

A builder for SetUserAgentOverrideRequest, which allows setting the optional parameters of the EmulationDomain.setUserAgentOverride command via a lambda.

Properties

Link copied to clipboard

Browser language to emulate.

Link copied to clipboard

The platform navigator.platform should return.

Link copied to clipboard

User agent to use.

Link copied to clipboard

To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData