public void RoundTripReturnDateValidation() { ScenarioRunner <BuyTicketPageBehaviors> runner = new ScenarioRunner <BuyTicketPageBehaviors>( roundTripReturnDateValidation, page => Assert.AreEqual(missingReturnDateValidationMessage, page.AlertText) ); runner.Start(); }
public void SuccessRoundTripBuying() { ScenarioRunner <BuyTicketPageBehaviors> runner = new ScenarioRunner <BuyTicketPageBehaviors>( successRoundTripBuyingScenario, page => Assert.AreEqual(true, page.IsShowingResultsTable) ); runner.Start(); }
public void PreviousDateSelecting() { ScenarioRunner <BuyTicketPageBehaviors> runner = new ScenarioRunner <BuyTicketPageBehaviors>( previousDateSelectingScenario, page => Assert.AreEqual(true, page.IsSelectingPreviousDateFailed) ); runner.Start(); }
public void InvalidDiscountCode() { ScenarioRunner <BuyTicketPageBehaviors> runner = new ScenarioRunner <BuyTicketPageBehaviors>( invalidDiscountCodeScenario, page => Assert.AreEqual(dicountCodeValidationMessage, page.AlertErrorMessage) ); runner.Start(); }
public void ChangeLanguage() { ScenarioRunner <MainPageBehaviors> runner = new ScenarioRunner <MainPageBehaviors>( changeLanguageScenario, page => Assert.AreEqual(japaneseLanguageTitle, page.PageTitle) ); runner.Start(); }
public void LoginInvalidCredentialsValidation() { ScenarioRunner <LoginPageBehaviors> runner = new ScenarioRunner <LoginPageBehaviors>( loginInvalidCredentialsValidation, page => Assert.IsTrue(page.ValidationError.StartsWith(invalidCredentialsValidationError)) ); runner.Start(); }
public void SuccessOneWayMultiPassengersBuying() { ScenarioRunner <BuyTicketPageBehaviors> runner = new ScenarioRunner <BuyTicketPageBehaviors>( successOneWayMultiPassengersBuying, page => Assert.IsTrue(page.IsShowingResultsTable) ); runner.Start(); }
public void ExcessPassengersCount() { ScenarioRunner <BuyTicketPageBehaviors> runner = new ScenarioRunner <BuyTicketPageBehaviors>( excessPassengersCountValidation, page => Assert.AreEqual(excesssPassengersCountValidationMessage, page.AlertText) ); runner.Start(); }
public void RoundTripDepartureDateValidation() { ScenarioRunner <BuyTicketPageBehaviors> runner = new ScenarioRunner <BuyTicketPageBehaviors>( roundTripDepartureDateValidation, page => { Assert.AreEqual(1, page.CountOfTabs); Assert.IsTrue(page.IsDepartureDateRequired); } ); runner.Start(); }