MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / GetPreference

Method GetPreference

dotnet/src/webdriver/Firefox/Preferences.cs:90–98  ·  view source on GitHub ↗

Gets a preference from the list of preferences. The name of the preference to retrieve. The value of the preference, or an empty string if the preference is not set. If is .

(string preferenceName)

Source from the content-addressed store, hash-verified

88 /// <returns>The value of the preference, or an empty string if the preference is not set.</returns>
89 /// <exception cref="ArgumentNullException">If <paramref name="preferenceName"/> is <see langword="null"/>.</exception>
90 internal string GetPreference(string preferenceName)
91 {
92 if (this.preferences.ContainsKey(preferenceName))
93 {
94 return this.preferences[preferenceName];
95 }
96
97 return string.Empty;
98 }
99
100 /// <summary>
101 /// Appends this set of preferences to the specified set of preferences.

Callers 1

UpdateUserPreferencesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected