Пример #1
0
 public override void InitTest()
 {
     browser = BrowserFactory.GetBrowser(Configuration.Browser, Configuration.ElementTimeout);
     browser.GoToUrl(Configuration.StartUrl);
     if (LoginSteps.IsLogIn(browser))
     {
         LoginSteps.LogOut(browser);
     }
     logger.Info("Logout");
 }
Пример #2
0
 public virtual void InitTest()
 {
     browser = BrowserFactory.GetBrowser(Configuration.Browser, Configuration.ElementTimeout);
     browser.GoToUrl(Configuration.StartUrl);
     LoginSteps.Login(browser, user);
 }
Пример #3
0
 public void CorrectLoginTest()
 {
     logger.Info($"Test LogIn started with parameters:\n login: {user.UserName}, password {user.Password}");
     LoginSteps.Login(browser, user);
     Assert.True(LoginSteps.IsLogIn(browser, user));
 }