示例#1
0
        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());
        }
示例#2
0
 public void UseBrowser(BrowserDriver webDriver)
 {
     _webDriver = webDriver;
 }