public static void ReadConfig() { if (Current != null) { throw new InvalidOperationException("Context is already initialized"); } Current = new WebDriverContext(DriverConfiguration.GetConfiguration(), EnvironmentsConfiguration.GetConfiguration()); }
public WebDriverContext(DriverConfiguration driver, EnvironmentsConfiguration environment) { _driverConfiguration = driver; _environmentsConfiguration = environment; }
public T GoTo <T>(string url) where T : Page { return(GoTo <T>(EnvironmentsConfiguration.GetConfiguration().CurrentEnvironmentBaseUrl, url)); }