Table of Contents

Class ChromePerformanceLoggingPreferences

Namespace
OpenQA.Selenium.Chrome
Assembly
WebDriver.dll

Represents the type-safe options for setting preferences for performance logging in the Chrome browser.

public class ChromePerformanceLoggingPreferences
Inheritance
ChromePerformanceLoggingPreferences
Inherited Members

Constructors

ChromePerformanceLoggingPreferences()

public ChromePerformanceLoggingPreferences()

Properties

BufferUsageReportingInterval

Gets or sets the interval between Chrome DevTools trace buffer usage events. Defaults to 1000 milliseconds.

public TimeSpan BufferUsageReportingInterval { get; set; }

Property Value

TimeSpan

Exceptions

ArgumentException

Thrown when an attempt is made to set the value to a time span of less tnan or equal to zero milliseconds.

IsCollectingNetworkEvents

Gets or sets a value indicating whether Chrome will collect events from the Network domain. Defaults to true.

public bool IsCollectingNetworkEvents { get; set; }

Property Value

bool

IsCollectingPageEvents

Gets or sets a value indicating whether Chrome will collect events from the Page domain. Defaults to true.

public bool IsCollectingPageEvents { get; set; }

Property Value

bool

IsCollectingTimelineEvents

Gets or sets a value indicating whether Chrome will collect events from the Timeline domain. Defaults to true, but is set to false when tracing is enabled by adding one or more tracing categories.

[Obsolete("Setting 'enableTimeline is no longer supported by chromedriver. This preference will no longer be sent to chromedriver. This property will be removed in a future release.")]
public bool IsCollectingTimelineEvents { get; set; }

Property Value

bool

TracingCategories

Gets a comma-separated list of the categories for which tracing is enabled.

public string TracingCategories { get; }

Property Value

string

Methods

AddTracingCategories(IEnumerable<string>)

Adds categories to the list of Chrome tracing categories for which events should be collected.

public void AddTracingCategories(IEnumerable<string> categoriesToAdd)

Parameters

categoriesToAdd IEnumerable<string>

An IEnumerable<T> object of categories to add.

AddTracingCategories(params string[])

Adds categories to the list of Chrome tracing categories for which events should be collected.

public void AddTracingCategories(params string[] categoriesToAdd)

Parameters

categoriesToAdd string[]

An array of categories to add.

AddTracingCategory(string)

Adds a single category to the list of Chrome tracing categories for which events should be collected.

public void AddTracingCategory(string category)

Parameters

category string

The category to add.