Esempio n. 1
0
        public TelasFluxoCompleto(Browser browser)
        {
            _browser = browser;

            string caminhoDriver = ConfigurationManager.AppSettings["Selenium"];

            _driver = WebDriveFactory.CreateWebDriver(_browser, caminhoDriver);
        }
Esempio n. 2
0
        public TelaHome(IConfiguration configuration, Browser browser)
        {
            _configuration = configuration;
            _browser       = browser;

            string caminhoDriver = null;

            if (browser == Browser.Chrome)
            {
                caminhoDriver = _configuration.GetSection("Selenium:CaminhoDriverChrome").Value;
            }

            _driver = WebDriveFactory.CreateWebDriver(browser, caminhoDriver);
        }