예제 #1
0
 private ApplicationManager()
 {
     Init2();
     loginHelper   = new LoginHelper(this);
     navigation    = new NavigationHelper(this, baseURL);
     groupHelper   = new GroupHelper(this);
     contactHelper = new ContactHelper(this);
 }
예제 #2
0
 private ApplicationManager()
 {
     Driver           = new FirefoxDriver();
     BaseUrl          = "http://localhost/addressbook";
     LoginHelper      = new LoginHelper(this);
     NavigationHelper = new NavigationHelper(this, BaseUrl);
     GroupHelper      = new GroupHelper(this);
     ContactsHelper   = new ContactsHelper(this);
 }
예제 #3
0
 private ApplicationManager()
 {
     driver           = new FirefoxDriver();
     baseURL          = "http://localhost/";
     loginHelper      = new LoginHelper(this);
     navigationHelper = new NavigationHelper(this, baseURL);
     groupHelper      = new GroupHelper(this);
     contactHelper    = new ContactHelper(this);
 }
        private ApplicationManager()
        {
            driver  = new FirefoxDriver(new FirefoxBinary("C:\\Program Files\\Mozilla Firefox\\firefox.exe"), new FirefoxProfile());
            baseURL = "http://localhost/";

            loginHelper    = new LoginHelper(this);
            navigateHelper = new NavigationHelper(this, baseURL);
            groupHelper    = new GroupHelper(this);
            contactHelper  = new ContactHelper(this);
        }
예제 #5
0
        private static ThreadLocal <ApplicationManager> app = new ThreadLocal <ApplicationManager>(); // спец.объект между потоком и объектом ApplicationManager

        private ApplicationManager()
        {
            driver  = new ChromeDriver();
            baseURL = "http://127.0.0.1";

            loginHelper      = new LoginHelper(this);               // конструктор хелпера логин
            navigationHelper = new NavigationHelper(this, baseURL); // конструтор хелпера навигации
            groupHelper      = new GroupHelper(this);               // конструктор хелпера групп
            contactHelper    = new ContactHelper(this);             // конструктор хелпера контактов
        }
예제 #6
0
 private AppManager()
 {
     driver           = new ChromeDriver();
     loginHelper      = new LoginHelper(this);
     navigationHelper = new NavigationHelper(this);
     groupHelper      = new GroupHelper(this);
     contactHelper    = new ContactHelper(this);
     groupBuilder     = new GroupBuilder(this);
     contactBuilder   = new ContactBuilder(this);
 }
예제 #7
0
        private ApplicationManager()
        {
            driver  = new FirefoxDriver();
            baseURL = "http://localhost/addressbook/";

            loginHelper = new LoginHelper(this);
            navigator   = new NavigationHelper(this, baseURL);
            group       = new GroupHelper(this);
            person      = new PersonHelper(this);
        }
예제 #8
0
        private ApplicationManager()
        {
            driver = new FirefoxDriver();
            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(3);
            baseURL = "http://localhost";

            loginLogoutHelper = new LoginLogoutHelper(this);
            navigationHelper  = new NavigationHelper(this, baseURL);
            groupHelper       = new GroupHelper(this);
            contactHelper     = new ContactHelper(this);
        }
예제 #9
0
        private ApplicationManager()
        {
            Driver  = Firefox();
            Wait    = new WebDriverWait(Driver, TimeSpan.FromSeconds(10));
            baseURL = "http://localhost";

            LoginHelper      = new LoginHelper(this);
            GroupHelper      = new GroupHelper(this);
            NavigationHelper = new NavigationHelper(this);
            ContactHelper    = new ContactHelper(this);
        }
예제 #10
0
        private ApplicationManager()
        {
            driver = new FirefoxDriver();

            baseURL            = "http://localhost";
            verificationErrors = new StringBuilder();

            loginHelper   = new LoginHelper(this);
            navigator     = new NavigationHelper(this, baseURL);
            groupHelper   = new GroupHelper(this);
            contactHelper = new ContactHelper(this);
        }
예제 #11
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/";

            loginHelper   = new LoginHelper(this);
            groupHelper   = new GroupHelper(this);
            contactHelper = new ContactHelper(this);
            naviHelper    = new NavigationHelper(this, baseURL);
        }
예제 #12
0
        private AppManager()
        {
            var firefoxOptions = new FirefoxOptions
            {
                UseLegacyImplementation   = true,
                BrowserExecutableLocation = @"C:\Program Files\Mozilla Firefox\firefox.exe"
            };

            driver  = new FirefoxDriver(firefoxOptions);
            baseURL = "http://localhost/";

            LoginHelper      = new LoginHelper(driver);
            ContactHelper    = new ContactHelper(driver);
            NavigationHelper = new NavigationHelper(driver, baseURL);
            GroupHelper      = new GroupHelper(driver);
        }