Show / Hide Table of Contents

Class ChromeProfileManager

Inheritance
System.Object
ChromeProfileManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: GenerallyPositive.Browser
Assembly: GPAL.dll
Syntax
public class ChromeProfileManager

Methods

CreateTempUserProfile(Object, String, Boolean, Boolean, Boolean, Dictionary<String, Object>, String)

Creates a temporary browser profile by copying the DefaultProfile directory, updates the Preferences file with custom settings, and sets browserSettings.ProfileDataDirectory.

Declaration
public static string CreateTempUserProfile(dynamic browserSettings, string downloadDirectory, bool promptForDownload, bool openPDFExternally, bool loadImages, Dictionary<string, object> additionalPrefs = null, string extensionPath = null)
Parameters
Type Name Description
System.Object browserSettings

Object containing ProfileDataDirectory and other settings.

System.String downloadDirectory

Path where downloads should be saved.

System.Boolean promptForDownload

Whether to prompt for download location.

System.Boolean openPDFExternally

Whether to open PDFs externally.

System.Boolean loadImages

Whether to load images.

System.Collections.Generic.Dictionary<System.String, System.Object> additionalPrefs

Additional preferences to include in the Preferences file.

System.String extensionPath

Optional path to an unpacked extension to load.

Returns
Type Description
System.String

The path to the created profile directory.

RemoveTempUserProfile(String)

Deletes the temporary browser profile directory.

Declaration
public static void RemoveTempUserProfile(string profileDirectory)
Parameters
Type Name Description
System.String profileDirectory

Path to the profile directory to delete.

In This Article
Back to top Generated by DocFX