Table of Contents

Class UserAgent

Namespace
OpenQA.Selenium.DevTools
Assembly
WebDriver.dll

Represents a user agent string.

public class UserAgent
Inheritance
UserAgent
Inherited Members

Constructors

UserAgent()

Initializes a new instance of the UserAgent type.

[Obsolete("Use the constructor which sets the userAgentString")]
public UserAgent()

UserAgent(string)

Initializes a new instance of the UserAgent type.

public UserAgent(string userAgentString)

Parameters

userAgentString string

The user agent string.

Properties

AcceptLanguage

Gets or sets the language to accept in headers.

public string? AcceptLanguage { get; set; }

Property Value

string

Platform

Gets or sets the value of the platform.

public string? Platform { get; set; }

Property Value

string

UserAgentString

Gets or sets the user agent string.

public string UserAgentString { get; set; }

Property Value

string