예제 #1
0
        public static void ReadConfig()
        {
            if (Current != null)
            {
                throw new InvalidOperationException("Context is already initialized");
            }

            Current = new WebDriverContext(DriverConfiguration.GetConfiguration(), EnvironmentsConfiguration.GetConfiguration());
        }
예제 #2
0
 public WebDriverContext(DriverConfiguration driver, EnvironmentsConfiguration environment)
 {
     _driverConfiguration       = driver;
     _environmentsConfiguration = environment;
 }
예제 #3
0
 public T GoTo <T>(string url)
     where T : Page
 {
     return(GoTo <T>(EnvironmentsConfiguration.GetConfiguration().CurrentEnvironmentBaseUrl, url));
 }