DotNetBrowser
1.21.5
|
A browser factory for creating browser instances. More...
Static Public Member Functions | |
static Browser | Create () |
Creates a new Browser instance. This method is equivalent of BrowserFactory.Create(manager, BrowserContext.DefaultContext). More... | |
static Browser | Create (BrowserContext browserContext) |
Creates a new browser instance using the entire browserContext. This method is equivalent of BrowserFactory.Create(manager, browserContext, null). The created Browser instance will be configured to use system proxy settings. Two Browser instances created with the same browserContext will share the same browser session including cookies and cache data. More... | |
static Browser | Create (BrowserType browserType) |
Creates a new browser instance with specified browser rendering model. The created Browser instance will be configured to use system proxy settings and default context. More... | |
static Browser | Create (BrowserContext browserContext, BrowserType browserType) |
Creates a new browser instance using the entire browserContext and specific proxy configuration. Two Browser instances created with the same browserContext will share the same browser session including cookies and cache data. More... | |
A browser factory for creating browser instances.
|
static |
Creates a new Browser instance. This method is equivalent of BrowserFactory.Create(manager, BrowserContext.DefaultContext).
The created Browser instance will be configured to use system proxy settings and default user data directory that can be received using the BrowserPreferences.GetDefaultDataDir() method.
All Browser instances created using this method will share browser session including cookies.
BrowserException | when factory failed to create Browser instance. |
|
static |
Creates a new browser instance using the entire browserContext. This method is equivalent of BrowserFactory.Create(manager, browserContext, null). The created Browser instance will be configured to use system proxy settings. Two Browser instances created with the same browserContext will share the same browser session including cookies and cache data.
browserContext | context for a new Browser instance. Cannot be null. |
BrowserException | when factory failed to create Browser instance. |
ArgumentException | when browserContext parameter is null. |
|
static |
Creates a new browser instance with specified browser rendering model. The created Browser instance will be configured to use system proxy settings and default context.
browserType | browser rendering model. Cannot be null. |
BrowserException | when factory failed to create Browser instance. |
ArgumentException | when browserContext parameter is null. |
|
static |
Creates a new browser instance using the entire browserContext and specific proxy configuration. Two Browser instances created with the same browserContext will share the same browser session including cookies and cache data.
browserContext | context for a new Browser instance. Cannot be null. |
browserType | Browser rendering type. |
BrowserException | when factory failed to create Browser instance. |
ArgumentException | when browserContext parameter is null. |