Beispiel #1
0
        public void Cleanup()
        {
            exit.LogOut();
            exit.AddAccount();

            autorisation.SetLogin(user2.Login);
            autorisation.SetPassword(user2.Password);
            // sett.OpenSettings();
            settings.OpenLinkSettings();
            settings.ChooseForwardPage();

            settings.ClearSettings();
            Thread.Sleep(1000);
            WebDriver.CloseWebDriver();
        }
Beispiel #2
0
 public void TearDown()
 {
     try
     {
         log.Info("TearDown started");
         LoginPageSteps.SwitchUser(TestsData.user1_email, TestsData.user1_password);
         BaseSteps.CleanUserSettingsAndMessages();
         LoginPageSteps.SwitchUser(TestsData.user2_email, TestsData.user2_password);
         BaseSteps.CleanUserSettingsAndMessages();
         BaseSteps.SignOut();
     }
     catch (Exception)
     {
         log.Error("Error occured in TearDown");
     }
     finally
     {
         WebDriver.CloseWebDriver();
         log.Info("TearDown finished");
     }
 }
Beispiel #3
0
 public void Cleanup()
 {
     Thread.Sleep(1000);
     WebDriver.CloseWebDriver();
 }