Ejemplo n.º 1
0
        public static BaseDriverManager GetWebDriverManager(string browser)
        {
            BaseDriverManager driverManager = null;

            switch (browser.ToLower())
            {
            case BROWSER_CHROME:
                driverManager = new ChromeDriverManager();
                break;

            case BROWSER_FIREFOX:
                driverManager = new FirefoxDriverManager();
                break;

            default:
                throw new InvalidOperationException("Not supported browser");
            }

            return(driverManager);
        }
Ejemplo n.º 2
0
        public static WebDriverManager GetDriverManager(string browser)
        {
            WebDriverManager driverManager;

            switch (browser)
            {
            case "chrome":
                driverManager = new ChromeDriverManager();
                break;

            case "firefox":
                driverManager = new FirefoxDriverManager();
                break;

            default:
                driverManager = new ChromeDriverManager();
                break;
            }
            return(driverManager);
        }
Ejemplo n.º 3
0
        public static DriverManager GetDriverManager(DriverType.DriverType driverType)
        {
            DriverManager driverManager;

            switch (driverType)
            {
            case DriverType.DriverType.Chrome:
                driverManager = new ChromeDriverManager();
                break;

            case DriverType.DriverType.Firefox:
                driverManager = new FirefoxDriverManager();
                break;

            default:
                driverManager = new ChromeDriverManager();
                break;
            }

            return(driverManager);
        }