Exemple #1
0
        public void SearchForNonexistentCountry()
        {
            Logger.Log.Info("Start SearchForNonexistentCountry test.");
            MainPage trainpalSearchOfTheCar = new MainPage(driver)
                                              .SearchInputCountrySendKeys(CreatorCountryModel.WithCountryProperties())
                                              .SearchInputCountryItemClick();

            Assert.AreEqual(trainpalSearchOfTheCar.SelectError(), errorTextSearchCountryInWhichThereIsNoCompany);
        }
Exemple #2
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);
        }
Exemple #3
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);
        }
Exemple #4
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");
        }
Exemple #5
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);
        }
Exemple #6
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);
        }