public void RegisterDriverGroups()
        {
            DriverGroup webDriverGroup = new DriverGroup()
            {
                Name        = "Web",
                Description = "Drivers intended to test web UI",
                Drivers     = new System.Collections.Generic.List <ISplintDriver>()
                {
                    new ChromeSplintDriver(),
                    new FirefoxSplintDriver(),
                    new InternetExplorerSplintDriver()
                }
            };

            //TODO: Add mobile driver group

            DriverGroupProvider.AddDriverGroup(webDriverGroup);
        }
示例#2
0
        public Splint WithDriverGroup(string driverGroupName)
        {
            IDriverGroup driverGroup = DriverGroupProvider.GetDriverGroup(driverGroupName);

            if (driverGroup == null)
            {
                throw new DriverGroupNotFoundException(driverGroupName);
            }

            driverGroup.Drivers.ForEach(driver =>
            {
                if (!_drivers.ContainsKey(driver.Name))
                {
                    _drivers.Add(driver.Name, driver);
                }
            });

            return(this);
        }