Exemple #1
0
 public void ClassInit()
 {
     if (Driver == null)
     {
         Driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
         Driver.Manage().Window.FullScreen();
     }
     _DefaultUserData = FactoryDefault.CreateTestModel();
     _logInPage       = new LogIn_Page(Driver);
     _regPage         = new Registration_Page(Driver);
 }
Exemple #2
0
        public void ClassInit()
        {
            ChromeOptions options = new ChromeOptions();

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

            _driver = new RemoteWebDriver(new Uri("http://192.33.168.101:4444/wd/hub"), options.ToCapabilities(), TimeSpan.FromSeconds(10));

            //_driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
            _driver.Manage().Window.FullScreen();
            _driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);

            _DefaultUserData = FactoryDefault.CreateTestModel();
            _logInPage       = new LogIn_Page(_driver);
            _regPage         = new Registration_Page(_driver);
        }