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"]); }