Exemplo n.º 1
0
        public void ClassInitialize()
        {
            //RegistrationPages
            _driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
            _wait   = new WebDriverWait(_driver, TimeSpan.FromSeconds(30));
            _driver.Manage().Window.Maximize();
            _driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30);
            _loginPage            = new LoginPage(_driver);
            _registrationPageFull = new RegistrationPageFull(_driver);
            _user = UserFactory.CreateRegistrationUser();

            //Google search
            _googleSearchPage    = new GoogleSearchPage(_driver);
            _googleSearchResults = new GoogleSearchResults(_driver);
            _googleFindPage      = new GoogleFindPage(_driver);

            //SoftUniCoursePage check
            _softUniCoursePage = new SoftUniCoursePage(_driver);
            _softUniPage       = new SoftUniPage(_driver);
        }
Exemplo n.º 2
0
        public void ClassInitialize()
        {
            //ChromeOptions options = new ChromeOptions();

            //options.PlatformName = "windows";
            //options.BrowserVersion = "77.0";

            //_driver = new RemoteWebDriver(new Uri("http://192.168.100.8:27617/wd/hub"), options.ToCapabilities(), TimeSpan.FromSeconds(10));
            //_driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(30);
            //_driver.Manage().Window.Maximize();
            //_wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(30));
            //_driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30);

            //_driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
            //_wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(30));
            //_driver.Manage().Window.Maximize();
            //_driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30);
            _loginPage            = new LoginPage(Driver);
            _registrationPageFull = new RegistrationPageFull(Driver);
            _user = UserFactory.CreateRegistrationUser();
        }