Skip to content

Commit d57f406

Browse files
committedFeb 5, 2016
Adding property to .NET ChromeOptions for perf logging preferences
1 parent 48b9df4 commit d57f406

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎dotnet/src/webdriver/Chrome/ChromeOptions.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,13 @@ private Dictionary<string, object> GeneratePerformanceLoggingPreferencesDictiona
663663
string tracingCategories = this.perfLoggingPreferences.TracingCategories;
664664
if (!string.IsNullOrEmpty(tracingCategories))
665665
{
666+
// Adding both 'tracingCategories' and 'traceCategories' to the dictionary.
667+
// The ChromeDriver documentation indicates one of these is correct; user
668+
// reports indicate the other is correct. Until the proper preference name
669+
// is validated by the Chromium development team, we'll send both, as the
670+
// extraneous one should be ignored by the driver.
666671
perfLoggingPrefsDictionary["tracingCategories"] = tracingCategories;
672+
perfLoggingPrefsDictionary["traceCategories"] = tracingCategories;
667673
}
668674

669675
perfLoggingPrefsDictionary["bufferUsageReportingInterval"] = Convert.ToInt64(this.perfLoggingPreferences.BufferUsageReportingInterval.TotalMilliseconds);

0 commit comments

Comments
 (0)