Exemple #1
0
 /// <inheritdoc/>
 public new async Task <IChromiumBrowserContext> NewContextAsync(
     ViewportSize viewport,
     string userAgent                = null,
     bool?bypassCSP                  = null,
     bool?javaScriptEnabled          = null,
     string timezoneId               = null,
     Geolocation geolocation         = null,
     ContextPermission[] permissions = null,
     bool?isMobile               = null,
     bool?offline                = null,
     decimal?deviceScaleFactor   = null,
     Credentials httpCredentials = null,
     bool?hasTouch               = null,
     bool?acceptDownloads        = null,
     bool?ignoreHTTPSErrors      = null,
     ColorScheme?colorScheme     = null,
     string locale               = null,
     Dictionary <string, string> extraHttpHeaders = null,
     RecordHarOptions recordHar     = null,
     RecordVideoOptions recordVideo = null)
 => await base.NewContextAsync(
     viewport,
     userAgent,
     bypassCSP,
     javaScriptEnabled,
     timezoneId,
     geolocation,
     permissions,
     isMobile,
     offline,
     deviceScaleFactor,
     httpCredentials,
     hasTouch,
     acceptDownloads,
     ignoreHTTPSErrors,
     colorScheme,
     locale,
     extraHttpHeaders,
     recordHar,
     recordVideo).ConfigureAwait(false) as IChromiumBrowserContext;
Exemple #2
0
 /// <inheritdoc/>
 public new async Task <IChromiumBrowserContext> LaunchPersistentContextAsync(
     string userDataDir,
     ViewportSize viewport,
     bool?headless                   = null,
     string[] args                   = null,
     bool?devtools                   = null,
     string executablePath           = null,
     string downloadsPath            = null,
     bool?ignoreHTTPSErrors          = null,
     int?timeout                     = null,
     bool?dumpIO                     = null,
     int?slowMo                      = null,
     bool?ignoreAllDefaultArgs       = null,
     string[] ignoreDefaultArgs      = null,
     Dictionary <string, string> env = null,
     ProxySettings proxy             = null,
     string userAgent                = null,
     bool?bypassCSP                  = null,
     bool?javaScriptEnabled          = null,
     string timezoneId               = null,
     Geolocation geolocation         = null,
     ContextPermission[] permissions = null,
     bool?isMobile                   = null,
     bool?offline                    = null,
     decimal?deviceScaleFactor       = null,
     Credentials httpCredentials     = null,
     bool?hasTouch                   = null,
     bool?acceptDownloads            = null,
     ColorScheme?colorScheme         = null,
     string locale                   = null,
     Dictionary <string, string> extraHTTPHeaders = null,
     bool?chromiumSandbox           = null,
     bool?handleSIGINT              = null,
     bool?handleSIGTERM             = null,
     bool?handleSIGHUP              = null,
     RecordHarOptions recordHar     = null,
     RecordVideoOptions recordVideo = null)
 => await base.LaunchPersistentContextAsync(
     userDataDir,
     viewport,
     headless,
     args,
     devtools,
     executablePath,
     downloadsPath,
     ignoreHTTPSErrors,
     timeout,
     dumpIO,
     slowMo,
     ignoreAllDefaultArgs,
     ignoreDefaultArgs,
     env,
     proxy,
     userAgent,
     bypassCSP,
     javaScriptEnabled,
     timezoneId,
     geolocation,
     permissions,
     isMobile,
     offline,
     deviceScaleFactor,
     httpCredentials,
     hasTouch,
     acceptDownloads,
     colorScheme,
     locale,
     extraHTTPHeaders,
     chromiumSandbox,
     handleSIGINT,
     handleSIGTERM,
     handleSIGHUP,
     recordHar,
     recordVideo).ConfigureAwait(false) as IChromiumBrowserContext;