private EnvironmentManager()
        {
            browser = (Browser)Enum.Parse(typeof(Browser), GetSettingValue("Drivertype"));
            browserName = (BrowserName)Enum.Parse(typeof(BrowserName), GetSettingValue("BrowserName"));
            switch (browser)
            {
                case Browser.Remote:
                    // todo get config
                    // todo validate config
                    ReadRemoteConfiguration();
                    //if(GetSettingValue("AutoStart"))

                    //throw new NotImplementedException();
                    var settings = new SeleniumServerSettings { HostName = "localhost", Port = "4444", StandAlonePath = @"C:\Users\Rick\Documents\GitHub\SeleniumExtensions\selenium-server-standalone-3.0.1.jar" };

                    remoteServer = new SeleniumServerProxy(settings);
                    break;
                case Browser.SauceLabs:
                    // todo get config
                    // todo validate config
                    ReadRemoteConfiguration();
                    Assembly executingAssembly = Assembly.GetExecutingAssembly();
                    string assemblyLocation = executingAssembly.Location;
                    string currentDirectory = Path.GetDirectoryName(assemblyLocation);
                    break;
                case Browser.IPhone:
                case Browser.Android:
                case Browser.WindowsPhone:
                    throw new NotImplementedException("No mobile support at this time");
                default: //all other cases are local drivers
                    break;
            }
        }
 public SeleniumServerHubProxy(SeleniumServerSettings settings)
     : base(settings)
 {
 }
 public SeleniumServerProxyBase(SeleniumServerSettings settings)
 {
     HostName = settings.HostName;
     Port = settings.Port;
     StandAlonePath = settings.StandAlonePath;
 }
 public void Setup()
 {
     Settings = new SeleniumServerSettings { HostName = "localhost", Port = "4444", StandAlonePath = @"C:\Users\Rick\Documents\GitHub\SeleniumExtensions\selenium-server-standalone-3.0.1.jar" };
     SeleniumServer = new SeleniumServerProxy(Settings);
 }