示例#1
0
        public void TC01_SingleRoomBookingFor1Adult()
        {
            BookingConfig = new BookingConfiguration(BookingType.Hotel, "S02 Test Property (Marbella)", "Nov '19", "15 (Fri)", "1",
                                                     1, 1, 0, 0, PropertySource.Own);
            Member = new TradeMember("Sanyi Test Trade Member", "Sandor Bucsi", PaymentType.Invoice);

            var bookingMenuPage = BookingFlow();

            Assert.IsTrue(bookingMenuPage.IsVisible);
        }
示例#2
0
        public void TC02_SingleRoomBookingFor2Adults()
        {
            //configurations
            BookingConfig = new BookingConfiguration(BookingType.Hotel, "S02 Test Property (Marbella)", "Nov '19", "27 (Wed)", "3",
                                                     1, 2, 0, 0, PropertySource.Own);
            Member = new TradeMember("Sanyi Test Trade Member", "Sandor Bucsi", PaymentType.CreditCard);

            var bookingMenuPage = BookingFlow();

            Assert.IsTrue(bookingMenuPage.IsVisible);
        }
 //method
 internal BookingSearchPage FillOutFormAndSubmit(TradeMember member)
 {
     if (IsVisible)
     {
         Wait.Until(ExpectedConditions.ElementToBeClickable(TradeSearchField));
         TradeSearchField.SendKeys(member.Name);
         TradeSearchButton.Click();
         TraderSelector.Click();
         ContactPersonSelector.SelectByText(member.ContactPerson);
         Tracker.MoveToElement(ContinueButton).Perform();
         ContinueButton.Click();
         return(new BookingSearchPage(Driver));
     }
     else
     {
         Console.WriteLine($"New Booking page is not visible. Expected: {PageTitle}, " +
                           $"Actual: {Driver.Title}");
         return(null);
     }
 }