static BrowserDriver() { InternetExplorer = new BrowserDriver(() => BrowserFactory(@"InternetExplorerDriver\IEDriverServer.exe", DesiredCapabilities.InternetExplorer())); Firefox = new BrowserDriver(() => { var profile = new FirefoxProfile(); return new FirefoxDriver(profile); }); Chrome = new BrowserDriver(() => BrowserFactory()); }
public void UseBrowser(BrowserDriver webDriver) { _webDriver = webDriver; }