Example #1
0
        public void ChangeLocationToENG()
        {
            HomePage home = new HomePage(driver);

            home.GoToPage();
            PassengerPage passengerPage = home.GoToPassengerPage();
            ResultPage    result        = passengerPage.ChangeLocalization();

            Assert.IsTrue(result.IsUrlCorrect());
        }
Example #2
0
        public void CorrectLogIn()
        {
            HomePage home = new HomePage(driver);

            home.GoToPage();
            PassengerPage passengerPage = home.GoToPassengerPage();
            ResultPage    result        = passengerPage.Authorization("dpitalenko", "123456789rwby");

            Assert.IsNotNull(result.IsLogIn());
        }
Example #3
0
 public void ChangeLocationToENG()
 {
     try
     {
         HomePage home = new HomePage(driver);
         home.GoToPage();
         PassengerPage passengerPage = home.GoToPassengerPage();
         ResultPage    result        = passengerPage.ChangeLocalization();
         Assert.IsTrue(result.IsUrlCorrect());
         Logger.Logger.Log.Info("Test success!");
         Logger.Logger.TakeScreenshot(driver, @"Log\success2.png");
     }
     catch (Exception error)
     {
         Logger.Logger.TakeScreenshot(driver, @"Log\error2.png");
         Logger.Logger.Log.Error("Test error:" + error.Message);
     }
 }
Example #4
0
 public void CorrectLogIn()
 {
     try
     {
         HomePage home = new HomePage(driver);
         home.GoToPage();
         PassengerPage passengerPage = home.GoToPassengerPage();
         ResultPage    result        = passengerPage.Authorization("dpitalenko", "123456789rwby");
         Assert.IsNotNull(result.IsLogIn());
         Logger.Logger.Log.Info("Test success!");
         Logger.Logger.TakeScreenshot(driver, @"Log\success.png");
     }
     catch (Exception error)
     {
         Logger.Logger.TakeScreenshot(driver, @"Log\error.png");
         Logger.Logger.Log.Error("Test error:" + error.Message);
     }
 }