Example #1
0
        private void InitializeFirefoxDrivers()
        {
            var options = CreateFirefoxOptions();

            dynamicsDriver  = new PsaDriver <FirefoxDriver>(CreateFirefoxDriver(options));
            timeworksDriver = new TimeworksDriver <FirefoxDriver>(CreateFirefoxDriver(options));
            configDriver    = new ConfigDriver <FirefoxDriver>(CreateFirefoxDriver(options), configRepo);
        }
Example #2
0
        private void InitializeChromeDrivers()
        {
            var options = new ChromeOptions();
            //options.AddArgument("user-data-dir=/Users/user/Library/Application Support/Google/Chrome");
            //options.AddArgument("--profile-directory=Default");

            var chromeDriverDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            dynamicsDriver  = new PsaDriver <ChromeDriver>(new ChromeDriver(chromeDriverDir, options, TimeSpan.FromDays(1)));
            timeworksDriver = new TimeworksDriver <ChromeDriver>(new ChromeDriver(chromeDriverDir, options, TimeSpan.FromDays(1)));
            configDriver    = new ConfigDriver <ChromeDriver>(new ChromeDriver(chromeDriverDir, options, TimeSpan.FromDays(1)), configRepo);
        }