Beispiel #1
0
 protected virtual void SetUp(BrowserType browserType)
 {
     webDriver = WebDriversFactory.Create_Browser(browserType);
     Wait      = new WebDriverWait(webDriver, TimeSpan.FromSeconds(Constants.timeout));
     Actions   = new Actions(webDriver);
     webDriver.Manage().Window.Maximize();
     webDriver.Navigate().GoToUrl(URL);
     GlobaMethods = new GlobalMethods(webDriver);
 }
Beispiel #2
0
        protected virtual void SetUp(BrowserType browserType)
        {
            webDriver = WebDriversFactory.GetWebDriver(browserType, downloadPath);
            Wait      = new WebDriverWait(webDriver, TimeSpan.FromSeconds(5));
            Actions   = new Actions(webDriver);

            webDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);
            webDriver.Manage().Window.Maximize();
            webDriver.Navigate().GoToUrl(URL);
            GlobaMethods = new GlobalMethods(webDriver);
        }