コード例 #1
0
        public void FFT233_AddonStockType()
        {
            LoginMainPage logint = new LoginMainPage(this.Driver);

            logint.Navigate();
            logint.Login();
            Thread.Sleep(2000);
            AddonMainPage addon = new AddonMainPage(this.Driver);

            addon.FFT_232StockType_WithStockAndCOnfigurations();
            CreateBookingMainPage CreateBooking = new CreateBookingMainPage(this.Driver);

            //***create Booking with addon quantity 4
            CreateBooking.CreateBookingNavigation();
            Thread.Sleep(2000);
            CreateBooking.searchButtonclick();
            Thread.Sleep(5000);
            CreateBooking.CreateBookingValidate().TestResourceCheckbox();
            CreateBooking.selectingtheresource();
            Thread.Sleep(3000);
            CreateBooking.GotoSummaryPage();
            Thread.Sleep(4000);
            Addons_FromNewBookingPage addAddon = new Addons_FromNewBookingPage(this.Driver);

            addAddon.CliCkOnAddAddon_FromBookingSummary();
            Thread.Sleep(2000);
            addAddon.add_addon_Bread_VerifyStock();
            addAddon.ClickOnAddAddonButton();
            addAddon.clickOnGoToSummaryFromAddonPage();
            Thread.Sleep(3000);
            BookingSummaryMainPage bookingsummary = new BookingSummaryMainPage(this.Driver);

            bookingsummary.EnterTitle();
            Thread.Sleep(2000);
            bookingsummary.clickonsave();

            //****Create Booking with addon quantity 3
            CreateBooking.CreateBookingNavigation();
            Thread.Sleep(2000);
            CreateBooking.searchButtonclick();
            Thread.Sleep(5000);
            CreateBooking.CreateBookingValidate().TestResourceCheckbox();
            CreateBooking.selectingtheresource();
            Thread.Sleep(3000);
            CreateBooking.GotoSummaryPage();
            Thread.Sleep(4000);
            addAddon.CliCkOnAddAddon_FromBookingSummary();
            Thread.Sleep(2000);
            addAddon.add_addon_Bread_VerifyStock();
            Thread.Sleep(3000);
            addAddon.AddonQuantity3();
            addAddon.ClickOnAddAddonButton();
            addAddon.clickOnGoToSummaryFromAddonPage();
            Thread.Sleep(2000);
            bookingsummary.clickonsave();
            Thread.Sleep(2000);
            bookingsummary.FFT233_Is_AddonOutOfStock_PopUPEnabled();
        }