DotNetBrowser  1.14
Static Public Member Functions | List of all members
DotNetBrowser.BrowserFactory Class Reference

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...
 

Detailed Description

A browser factory for creating browser instances.

Member Function Documentation

static Browser DotNetBrowser.BrowserFactory.Create ( )
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.

Returns
a new Browser instance.
Exceptions
BrowserExceptionwhen factory failed to create Browser instance.
static Browser DotNetBrowser.BrowserFactory.Create ( BrowserContext  browserContext)
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.

Parameters
browserContextcontext for a new Browser instance. Cannot be null.
Returns
a new Browser instance.
Exceptions
BrowserExceptionwhen factory failed to create Browser instance.
ArgumentExceptionwhen browserContext parameter is null.
static Browser DotNetBrowser.BrowserFactory.Create ( BrowserType  browserType)
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.

Parameters
browserTypebrowser rendering model. Cannot be null.
Returns
a new Browser instance.
Exceptions
BrowserExceptionwhen factory failed to create Browser instance.
ArgumentExceptionwhen browserContext parameter is null.
static Browser DotNetBrowser.BrowserFactory.Create ( BrowserContext  browserContext,
BrowserType  browserType 
)
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.

Parameters
browserContextcontext for a new Browser instance. Cannot be null.
browserTypeBrowser rendering type.
Returns
a new Browser instance.
Exceptions
BrowserExceptionwhen factory failed to create Browser instance.
ArgumentExceptionwhen browserContext parameter is null.