Table of Contents

Class UserAgentMetadata

Namespace
Selenium.WebDriver.BiDi.Cdp.Emulation
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints Missing optional values will be filled in by the target with what it would normally use.

public sealed record UserAgentMetadata : IEquatable<UserAgentMetadata>
Inheritance
UserAgentMetadata
Implements
Inherited Members

Constructors

UserAgentMetadata(string, string, string, string, bool)

Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints Missing optional values will be filled in by the target with what it would normally use.

public UserAgentMetadata(string Platform, string PlatformVersion, string Architecture, string Model, bool Mobile)

Parameters

Platform string
PlatformVersion string
Architecture string
Model string
Mobile bool

Properties

Architecture

public string Architecture { get; init; }

Property Value

string

Bitness

public string? Bitness { get; init; }

Property Value

string

Brands

Brands appearing in Sec-CH-UA.

public ImmutableArray<UserAgentBrandVersion>? Brands { get; init; }

Property Value

ImmutableArray<UserAgentBrandVersion>?

FormFactors

Used to specify User Agent form-factor values. See https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factors

public ImmutableArray<string>? FormFactors { get; init; }

Property Value

ImmutableArray<string>?

FullVersion

[Obsolete]
public string? FullVersion { get; init; }

Property Value

string

FullVersionList

Brands appearing in Sec-CH-UA-Full-Version-List.

public ImmutableArray<UserAgentBrandVersion>? FullVersionList { get; init; }

Property Value

ImmutableArray<UserAgentBrandVersion>?

Mobile

public bool Mobile { get; init; }

Property Value

bool

Model

public string Model { get; init; }

Property Value

string

Platform

public string Platform { get; init; }

Property Value

string

PlatformVersion

public string PlatformVersion { get; init; }

Property Value

string

Wow64

public bool? Wow64 { get; init; }

Property Value

bool?