コード例 #1
0
        private void InitializeWebDriver(string url, params IModule[] modules)
        {
            var driver = WebBrowserFactory.CreateWebDriver(ApplicationSettings.RunOnBrowser);

            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(ApplicationSettings.ActionTimeout);
            driver.Navigate().GoToUrl(url);
            loginModule.InitializeWebDriver(driver);
            foreach (var module in modules)
            {
                module.InitializeWebDriver(driver);
            }
        }