Ejemplo n.º 1
0
 private ApplicationManager(String baseURL = "http://localhost/addressbook/")
 {
     driver             = new ChromeDriver();
     baseURL            = "http://localhost/addressbook/";
     verificationErrors = new StringBuilder();
     loginHelper        = new LoginHelper(this);
     navigationHelper   = new NavigationHelper(this);
     groupHelper        = new GroupHelper(this);
     contactsHelper     = new ContactsHelper(this);
 }
        private ApplicationManager()
        {
            driver             = new FirefoxDriver(new FirefoxBinary("C:\\Program Files\\Mozilla Firefox\\firefox.exe"), new FirefoxProfile());
            baseURL            = "http://localhost";
            verificationErrors = new StringBuilder();

            loginHelper   = new LoginHelper(this);
            navHelper     = new NavigationHelper(this, baseURL);
            groupHelper   = new GroupHelper(this);
            contactHelper = new ContactHelper(this);
            waitHelper    = new WaitHelper(this);
        }
        private ApplicationManager()
        {
            Driver = new FirefoxDriver();
            // if an error (couldn't start the browser as it was restarting to install updates), wait 30 sec and retry
            //Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(3);

            //baseURL = "http://localhost/addressbook/";

            Login         = new Login(this);
            Navigator     = new Navigation(this);
            GroupHelper   = new GroupHelper(this);
            ContactHelper = new ContactHelper(this);
        }
Ejemplo n.º 4
0
        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:5555/";

            loginHelper   = new LoginHelper(this);
            navigator     = new NavigationHelper(this, baseURL);
            groupHelper   = new GroupHelper(this);
            contactHelper = new ContactHelper(this);
        }