ChromeOptionsAddUserProfilePreference Method WebDriver
Adds a preference for the user-specific profile or "user data directory." If the specified preference already exists, it will be overwritten.

Namespace: OpenQA.Selenium.Chrome
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax

public void AddUserProfilePreference(
	string preferenceName,
	Object preferenceValue
)

Parameters

preferenceName
Type: SystemString
The name of the preference to set.
preferenceValue
Type: SystemObject
The value of the preference to set.
See Also

Reference