public void ChangeLocationToENG() { HomePage home = new HomePage(driver); home.GoToPage(); PassengerPage passengerPage = home.GoToPassengerPage(); ResultPage result = passengerPage.ChangeLocalization(); Assert.IsTrue(result.IsUrlCorrect()); }
public void CorrectLogIn() { HomePage home = new HomePage(driver); home.GoToPage(); PassengerPage passengerPage = home.GoToPassengerPage(); ResultPage result = passengerPage.Authorization("dpitalenko", "123456789rwby"); Assert.IsNotNull(result.IsLogIn()); }
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); } }
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); } }