Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }
Пример #5
0
        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);
        }
Пример #6
0
        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");
        }
Пример #7
0
        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);
        }
Пример #8
0
        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);
        }
Пример #9
0
        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);
        }