Exemplo n.º 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()));
        }
Exemplo n.º 2
0
 /// <inheritdoc />
 public Task <IBrowserContext> LaunchPersistentContextAsync(string userDataDir, LaunchOptions options)
 => LaunchPersistentContextAsync(userDataDir, options?.ToPersistentOptions() ?? new LaunchPersistentOptions());