/// <inheritdoc/> public Task <IBrowserContext> 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) => NewContextAsync(new BrowserContextOptions { Viewport = viewport, UserAgent = userAgent, BypassCSP = bypassCSP, JavaScriptEnabled = javaScriptEnabled, TimezoneId = timezoneId, Geolocation = geolocation, Permissions = permissions, IsMobile = isMobile, Offline = offline, DeviceScaleFactor = deviceScaleFactor, HttpCredentials = httpCredentials, HasTouch = hasTouch, AcceptDownloads = acceptDownloads, ColorScheme = colorScheme, Locale = locale, IgnoreHTTPSErrors = ignoreHTTPSErrors, ExtraHTTPHeaders = extraHTTPHeaders, RecordHar = recordHar, RecordVideo = recordVideo, Proxy = proxy, StorageStatePath = storageStatePath, StorageState = storageState, });
/// <inheritdoc/> public Task <IPage> NewPageAsync( 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) => NewPageAsync(new BrowserContextOptions { UserAgent = userAgent, BypassCSP = bypassCSP, JavaScriptEnabled = javaScriptEnabled, TimezoneId = timezoneId, Geolocation = geolocation, Permissions = permissions, IsMobile = isMobile, Offline = offline, DeviceScaleFactor = deviceScaleFactor, HttpCredentials = httpCredentials, HasTouch = hasTouch, AcceptDownloads = acceptDownloads, IgnoreHTTPSErrors = ignoreHTTPSErrors, ColorScheme = colorScheme, Locale = locale, ExtraHttpHeaders = extraHttpHeaders, RecordHar = recordHar, RecordVideo = recordVideo, });
/// <inheritdoc /> public Task <IBrowserContext> LaunchPersistentContextAsync( string userDataDir, 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) => LaunchPersistentContextAsync( userDataDir, new LaunchPersistentOptions { Headless = headless, Args = args, UserDataDir = userDataDir, Devtools = devtools, ExecutablePath = executablePath, DownloadsPath = downloadsPath, IgnoreHTTPSErrors = ignoreHTTPSErrors, Timeout = timeout, DumpIO = dumpIO, SlowMo = slowMo, IgnoreAllDefaultArgs = ignoreAllDefaultArgs, IgnoreDefaultArgs = ignoreDefaultArgs, Env = env, Proxy = proxy, UserAgent = userAgent, BypassCSP = bypassCSP, JavaScriptEnabled = javaScriptEnabled, TimezoneId = timezoneId, Geolocation = geolocation, Permissions = permissions, IsMobile = isMobile, Offline = offline, DeviceScaleFactor = deviceScaleFactor, HttpCredentials = httpCredentials, HasTouch = hasTouch, AcceptDownloads = acceptDownloads, ColorScheme = colorScheme, Locale = locale, ExtraHTTPHeaders = extraHTTPHeaders, ChromiumSandbox = chromiumSandbox, HandleSIGHUP = handleSIGHUP, HandleSIGINT = handleSIGINT, HandleSIGTERM = handleSIGTERM, RecordHar = recordHar, RecordVideo = recordVideo, });