Selenium.WebDriver by Selenium Committers

<PackageReference Include="Selenium.WebDriver" Version="4.16.1" />

.NET API 4,321,792 bytes

 FirefoxProfile

public class FirefoxProfile
Provides the ability to edit the preferences associated with a Firefox profile.
public bool DeleteAfterUse { get; set; }

Gets or sets a value indicating whether to delete this profile after use with the FirefoxDriver.

public string ProfileDirectory { get; }

Gets the directory containing the profile.

public FirefoxProfile()

Initializes a new instance of the FirefoxProfile class.

public FirefoxProfile(string profileDirectory)

Initializes a new instance of the FirefoxProfile class using a specific profile directory.

public FirefoxProfile(string profileDirectory, bool deleteSourceOnClean)

Initializes a new instance of the FirefoxProfile class using a specific profile directory.

public static FirefoxProfile FromBase64String(string base64)

Converts a base64-encoded string into a FirefoxProfile.

public void AddExtension(string extensionToInstall)

Adds a Firefox Extension to this profile

public void Clean()

Cleans this Firefox profile.

public void SetPreference(string name, string value)

Sets a preference in the profile.

public void SetPreference(string name, int value)

Sets a preference in the profile.

public void SetPreference(string name, bool value)

Sets a preference in the profile.

public string ToBase64String()

Converts the profile into a base64-encoded string.

public void WriteToDisk()

Writes this in-memory representation of a profile to disk.