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 CancellationOfOrderOfConfirmation() { Logger.Log.Info("Start CancellationOfOrderOfConfirmation test."); ReservationСancellationPage reservationСancellationPage = new MainPage(driver) .EntranceProfile() .FillLogin(CreatorLogIn.WithAllProperties()) .EntranceProfileAcc() .ReservationItemOpen() .SelectCancelThisBookingClick() .CancelReservations(); Assert.True(reservationСancellationPage.СonfirmationСancellation.Enabled); }
public void ChangePassword() { Logger.Log.Info("Start ChangePassword test."); PersonalAccountPage addCreditCard = new MainPage(driver) .EntranceProfile() .FillLogin(CreatorLogIn.WithAllProperties()) .EntranceProfileAcc() .AccountItemOpen() .ChangePasswordButtonClick() .PasswordEntry(CreatorLogIn.ConclusionWrongPassword()) .ButtonSaveClick(); Assert.AreEqual(addCreditCard.ErrorMessage(), passwordChangeErrorText); }
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 SearchRepresentativeInTheCountry() { Logger.Log.Info("Start SearchRepresentativeInTheCountry test."); RepresentativeInTheCountryPage representativeInTheCountry = new MainPage(driver) .EntranceProfile() .FillLogin(CreatorLogIn.WithAllProperties()) .FindLocation() .InputStationSendKeysAndClick(CreatorCountryModel.ChosenCountryAndSelectCity()) .InputStationItemClick() .InputStationSearchClick() .InputStationSendKeysAndClickCity(CreatorCountryModel.ChosenCountryAndSelectCity()) .InputStationSearchBelarusClick() .ButtonFullListLocationClick(); Assert.AreEqual(representativeInTheCountry.SixLocationsInMinsk(), textOfSearchResultRepresentative); }
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 AddAdditionalUser() { Logger.Log.Info("Start AddAdditionalUser test."); ProfilesPage addCreditCard = new MainPage(driver) .EntranceProfile() .FillLogin(CreatorLogIn.WithAllProperties()) .EntranceProfileAcc() .ProfilesItemClick() .SixtProfiledAddButtonClick() .AddPrivateProfileclick() .ProfileNameSendKeys(CreatorLogIn.ConclusionNameAndNewAccount()) .FieldEmailSendKeys(CreatorLogIn.ConclusionNameAndNewAccount()) .ButtonAddProfileClick(); Assert.AreEqual(addCreditCard.ErrorMessage(), textOfTheResultOfAddingNewUser); }
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); }