示例#1
0
        public void Setup()
        {
            var driverContext = new DriverContext();

            driver = driverContext.Driver;
            wait   = driverContext.Wait;
            driver.Navigate().GoToUrl(driverContext.GetConfig()["url"]);
            LoginPage loginPage = new LoginPage(driver);

            loginPage.Login(driverContext.GetConfig()["login"], driverContext.GetConfig()["password"]);
        }