Beispiel #1
0
        /// <inheritdoc />
        public Task <IBrowserContext> LaunchPersistentContextAsync(string userDataDir, LaunchOptions options)
        {
            if (options?.FirefoxUserPrefs != null)
            {
                throw new ArgumentException($"{nameof(LaunchOptions.FirefoxUserPrefs)} option is not supported in LaunchPersistentContextAsync.");
            }

            return(LaunchPersistentContextAsync(userDataDir, options?.ToPersistentOptions() ?? new LaunchPersistentOptions()));
        }
 /// <inheritdoc />
 public Task <IBrowserContext> LaunchPersistentContextAsync(string userDataDir, LaunchOptions options)
 => LaunchPersistentContextAsync(userDataDir, options?.ToPersistentOptions() ?? new LaunchPersistentOptions());