Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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");
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #7
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);
        }