public void SearchForNonexistentCountry() { Logger.Log.Info("Start SearchForNonexistentCountry test."); MainPage trainpalSearchOfTheCar = new MainPage(driver) .SearchInputCountrySendKeys(CreatorCountryModel.WithCountryProperties()) .SearchInputCountryItemClick(); Assert.AreEqual(trainpalSearchOfTheCar.SelectError(), errorTextSearchCountryInWhichThereIsNoCompany); }
public void RentCarRetroactively() { Logger.Log.Info("Start RentCarRetroactively test."); MainPage rentCarRetroactively = new MainPage(driver) .EntranceProfile() .FillLogin(CreatorLogIn.WithAllProperties()) .PickupStationSendKeysAndClick(CreatorCountryModel.WithCountryProperties()) .SelectFromListClick() .PickupDateButtonClick() .WaitPickupDateEnabled(); Assert.True(rentCarRetroactively.dayPicker.Enabled); }
public void FoundOnlyGuaranteeTheModel() { Logger.Log.Info("Start FoundOnlyGuaranteeTheModel test."); CarRent foundOnlyGuaranteeTheModel = new MainPage(driver) .EntranceProfile() .FillLogin(CreatorLogIn.WithAllProperties()) .PickupStationSendKeysAndClick(CreatorCountryModel.WithCountryProperties()) .SelectFromListClick() .PickupDateButtonClick() .PickupDateReservationClick() .PickupDateDeliveriesClick() .ButtonShowerClick() .SelectionGuaranteedCars(); Assert.AreEqual(foundOnlyGuaranteeTheModel.ErrorMessage(), guaranteedAutoSearchErrorText); }
public void FindCarWithLessThanTwoSeats() { Logger.Log.Info("Start FindCarWithLessThanTwoSeats test."); CarRent rentCar = new MainPage(driver) .EntranceProfile() .FillLogin(CreatorLogIn.WithAllProperties()) .PickupStationSendKeysAndClick(CreatorCountryModel.WithCountryProperties()) .SelectFromListClick() .PickupDateButtonClick() .PickupDateReservationClick() .PickupDateDeliveriesClick() .ButtonShowerClick() .SearchForTheNumberPlacesLessThanTwo(); Assert.AreNotEqual(rentCar.NoOfSeatsValue(), "1"); }
public void ToSpecifyTheDriversAgeIsLessThanEighteenYearsOfAge() { Logger.Log.Info("Start ToSpecifyTheDriversAgeIsLessThanEighteenYearsOfAge test."); CarRent rentCar = new MainPage(driver) .EntranceProfile() .FillLogin(CreatorLogIn.WithAllProperties()) .PickupStationSendKeysAndClick(CreatorCountryModel.WithCountryProperties()) .SelectFromListClick() .PickupDateButtonClick() .PickupDateReservationClick() .PickupDateDeliveriesClick() .ButtonShowerClick() .SearchForAgeLessThanEighteen(); Assert.AreNotEqual(rentCar.DayPickerOut(), minimumAgeSearchErrorText); }
public void SelectionOfAdditionalDriver() { Logger.Log.Info("Start SelectionOfAdditionalDriver test."); CarRent newDriver = new MainPage(driver) .EntranceProfile() .FillLogin(CreatorLogIn.WithAllProperties()) .PickupStationSendKeysAndClick(CreatorCountryModel.WithCountryProperties()) .SelectFromListClick() .PickupDateButtonClick() .PickupDateReservationClick() .PickupDateDeliveriesClick() .ButtonShowerClick() .SelectedCarClick() .SelectButtonClick() .AddingDriverButton(); Assert.True(newDriver.addDriverButton.Enabled); }