Table of Contents

Class UserAgentMetadata

Namespace
OpenQA.Selenium.DevTools.V148.Emulation
Assembly
Selenium.WebDriver.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 class UserAgentMetadata
Inheritance
UserAgentMetadata
Inherited Members

Properties

Architecture

architecture

[JsonPropertyName("architecture")]
public string Architecture { get; set; }

Property Value

string

Bitness

bitness

[JsonPropertyName("bitness")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Bitness { get; set; }

Property Value

string

Brands

Brands appearing in Sec-CH-UA.

[JsonPropertyName("brands")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public UserAgentBrandVersion[]? Brands { get; set; }

Property Value

UserAgentBrandVersion[]

FormFactors

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

[JsonPropertyName("formFactors")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string[]? FormFactors { get; set; }

Property Value

string[]

FullVersion

fullVersion

[JsonPropertyName("fullVersion")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? FullVersion { get; set; }

Property Value

string

FullVersionList

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

[JsonPropertyName("fullVersionList")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public UserAgentBrandVersion[]? FullVersionList { get; set; }

Property Value

UserAgentBrandVersion[]

Mobile

mobile

[JsonPropertyName("mobile")]
public bool Mobile { get; set; }

Property Value

bool

Model

model

[JsonPropertyName("model")]
public string Model { get; set; }

Property Value

string

Platform

platform

[JsonPropertyName("platform")]
public string Platform { get; set; }

Property Value

string

PlatformVersion

platformVersion

[JsonPropertyName("platformVersion")]
public string PlatformVersion { get; set; }

Property Value

string

Wow64

wow64

[JsonPropertyName("wow64")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? Wow64 { get; set; }

Property Value

bool?