Esempio n. 1
0
        public void MyTestInitialize()
        {
            switch (TestingSettings.Default.Driver)
            {
            case "Chrome":
                PropertiesCollection.Driver = new ChromeDriver(TestingSettings.Default.DriverPath);
                break;

            case "Firefox":
                PropertiesCollection.Driver = new FirefoxDriver(TestingSettings.Default.DriverPath);
                break;

            case "Iexplorer":
                PropertiesCollection.Driver = new InternetExplorerDriver(TestingSettings.Default.DriverPath);
                break;

            default:
                Console.WriteLine("need select a Driver to run");
                break;
            }

            Launch.LaunchUrl(loginSetting.Default.url);
        }