Exemplo n.º 1
0
        public Chrome SetExtention()
        {
            var dir           = FileAndFolderHandler.GetSolutionDirectory();
            var extensionPath = Path.Combine(dir, "Resources", "ChromeExtensions");
            var files         = Directory.GetFiles(extensionPath);

            foreach (var extension in files)
            {
                var extPath = Path.Combine(extensionPath, extension);
                if (_options == null)
                {
                    _options = new ChromeOptions();
                }
                _options.AddExtension(extPath);
            }
            return(this);
        }
Exemplo n.º 2
0
 public void GivenIHaveAReferenceOfTheAppConfigrationHandler()
 {
     appConfigHandler = new AppConfigHandler();
     _currentdir      = FileAndFolderHandler.GetSolutionDirectory();
 }
Exemplo n.º 3
0
 public AppConfigHandler()
 {
     _solutionDir = FileAndFolderHandler.GetSolutionDirectory();
 }
Exemplo n.º 4
0
 public void GivenIGetTheCurrentDirectory()
 {
     _currentdir = FileAndFolderHandler.GetSolutionDirectory();
 }