Exemplo n.º 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,
     ProxySettings proxy            = null,
     string storageStatePath        = null,
     StorageState storageState      = null)
 => await base.NewContextAsync(
     viewport,
     userAgent,
     bypassCSP,
     javaScriptEnabled,
     timezoneId,
     geolocation,
     permissions,
     isMobile,
     offline,
     deviceScaleFactor,
     httpCredentials,
     hasTouch,
     acceptDownloads,
     ignoreHTTPSErrors,
     colorScheme,
     locale,
     extraHTTPHeaders,
     recordHar,
     recordVideo,
     proxy,
     storageStatePath,
     storageState).ConfigureAwait(false) as IChromiumBrowserContext;
Exemplo n.º 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;