Ejemplo n.º 1
0
        private ApplicationManager()
        {
            FirefoxOptions options = new FirefoxOptions();

            options.BrowserExecutableLocation = @"c:\Program Files\Mozilla Firefox ESR\firefox.exe";
            options.UseLegacyImplementation   = true;
            options.AddArguments("--headless");
            driver  = new FirefoxDriver(options);
            baseURL = "http://localhost/mantisbt-2.14.0";

            Registration = new RegistrationHelper(this);
            Ftp          = new FtpHelper(this);
            James        = new JamesHelper(this);
            Mail         = new MailHelper(this);
            Login        = new LoginHelper(this);
            Project      = new ProjectHelper(this);
            Admin        = new AdminHelper(this, baseURL);
            API          = new APIHelper(this);
        }
        private ApplicationManager()
        {
            FirefoxOptions options = new FirefoxOptions();

            options.BrowserExecutableLocation = @"c:\Program Files\Mozilla Firefox\firefox.exe";
            options.UseLegacyImplementation   = true;
            driver  = new FirefoxDriver(options);
            baseURL = "http://localhost/mantisbt-2.16.0";

            Auth = new LoginHelper(this, baseURL);
            ProjectsAdministration = new ProjectManagementHelper(this);
            AdminNavigator         = new AdminHelper(this);
            UserNavigator          = new UserNavigation(this, baseURL);
            API = new APIHelper(this);

            Registration = new RegUserHelper(this);
            Ftp          = new FtpHelper(this);
            MailServer   = new JamesHelper(this);
            Mail         = new MailHelper(this);
        }