public void EnterWrongCardNumberAndPassword() { Logger.Log.Info("Start \"DepartureCityEqualsArrivalCity\" test"); FlightsSchedulePage flightsSchedulePage = new MainPage(Driver) .GoToFlightsSchedulePage() .EnterCode("100000" + RandomNumbers.FlightNumber()) .EnterPassword("123456") .ClickEnterButton(); Assert.AreEqual("Невірний Номер картки або Пароль", flightsSchedulePage.enterErrorMsg.Text); }
public void EnterWrongFlightToSubscriptionForm() { SaveScreenshotOnTestFailure(() => { OnlineBoardPage onlineBoardPage = new MainPage(Driver) .GoToOnlineBoardPage() .ClickFlightCheckBox() .InputFlightNumber(RandomNumbers.FlightNumber()) .ClickSearchButton(); Assert.AreEqual("Данi недоступнi", onlineBoardPage.flightMsg.Text); }); }
public void EnterWrongFlight() { TakeScreenshotWhenTestFailed(() => { Logger.Log.Info("Start \"EnterWrongFlight\" test"); OnlineBoardPage onlineBoardPage = new MainPage(Driver) .GoToOnlineBoardPage() .ClickFlightCheckBox() .InputFlightNumber(RandomNumbers.FlightNumber()) .ClickSearchButton(); Assert.AreEqual("Данi недоступнi", onlineBoardPage.flightMsg.Text); }); }