Exemplo n.º 1
0
        public static void NewGetWebDriverFromConfig()
        {
            switch (EnvironmentConfig.ConfigurationWrapper.Browser())
            {
            case "FireFox":
                driver = GetWebDriverFireFox();
                break;

            case "IE":
                driver = GetWebDriverFireIE();
                break;

            case "Chrome":
                driver = GetWebDriverForChrome();
                break;

            case "Headless":
                driver = GetHeadlessWebDriverForChrome();
                break;

            default:
                throw new Exception("Unknown browser:" + EnvironmentConfig.ConfigurationWrapper.Browser());
            }

            driver.Manage().Window.Maximize();
            //EXTENT
            report = ExtentReporting.CreateHTMLReport();
        }