C# Class WebDriverProxyUtilities.WebDriverFactory

A static factory class for creating WebDriver instances with proxies.
Datei anzeigen Open project: jimevans/WebDriverProxyExamples

Public Methods

Method Description
CreateWebDriverWithProxy ( BrowserKind kind, Proxy proxy ) : IWebDriver

Creates a WebDriver instance for the desired browser using the specified proxy settings.

Private Methods

Method Description
CreateChromeDriverWithProxy ( Proxy proxy ) : IWebDriver

Creates an ChromeDriver instance using the specified proxy settings.

CreateFirefoxDriverWithProxy ( Proxy proxy ) : IWebDriver

Creates an FirefoxDriver instance using the specified proxy settings.

CreateInternetExplorerDriverWithProxy ( Proxy proxy ) : IWebDriver

Creates an InternetExplorerDriver instance using the specified proxy settings.

CreatePhantomJSDriverWithProxy ( Proxy proxy ) : IWebDriver

Creates a PhantomJSDriver instance using the specified proxy settings.

Method Details

CreateWebDriverWithProxy() public static method

Creates a WebDriver instance for the desired browser using the specified proxy settings.
public static CreateWebDriverWithProxy ( BrowserKind kind, Proxy proxy ) : IWebDriver
kind BrowserKind The browser to launch.
proxy Proxy The WebDriver Proxy object containing the proxy settings.
return IWebDriver